From 92c10ef33ef79a985af51bb7f9638d1055133463 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 23 Sep 2025 21:48:00 +0100 Subject: [PATCH] Create an `openapi` dev shell Move the openapi flake to the root level and refactor to a devshell called `openapi`. The other flake.nix files will be similarly combined in future commits. Signed-off-by: Oliver Davies --- openapi/flake.lock => flake.lock | 0 openapi/flake.nix => flake.nix | 16 +++++++++------- ...enerate-html.nix => openapi-generate-html.nix | 0 openapi/openapi-mock.nix => openapi-mock.nix | 0 openapi/.envrc | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) rename openapi/flake.lock => flake.lock (100%) rename openapi/flake.nix => flake.nix (64%) rename openapi/openapi-generate-html.nix => openapi-generate-html.nix (100%) rename openapi/openapi-mock.nix => openapi-mock.nix (100%) diff --git a/openapi/flake.lock b/flake.lock similarity index 100% rename from openapi/flake.lock rename to flake.lock diff --git a/openapi/flake.nix b/flake.nix similarity index 64% rename from openapi/flake.nix rename to flake.nix index c4f918f..b194c5d 100644 --- a/openapi/flake.nix +++ b/flake.nix @@ -18,14 +18,16 @@ }; }; - devShells.${system}.default = pkgs.mkShell { - packages = with pkgs; [ - openapi-generator-cli - openapi-tui + devShells.${system} = { + openapi = pkgs.mkShell { + packages = with pkgs; [ + openapi-generator-cli + openapi-tui - self.packages.${system}.openapi-generate-html - self.packages.${system}.openapi-mock - ]; + self.packages.${system}.openapi-generate-html + self.packages.${system}.openapi-mock + ]; + }; }; }; } diff --git a/openapi/openapi-generate-html.nix b/openapi-generate-html.nix similarity index 100% rename from openapi/openapi-generate-html.nix rename to openapi-generate-html.nix diff --git a/openapi/openapi-mock.nix b/openapi-mock.nix similarity index 100% rename from openapi/openapi-mock.nix rename to openapi-mock.nix diff --git a/openapi/.envrc b/openapi/.envrc index 3550a30..5ae4bd6 100644 --- a/openapi/.envrc +++ b/openapi/.envrc @@ -1 +1 @@ -use flake +use flake ..#openapi