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 <oliver@oliverdavies.uk>
This commit is contained in:
parent
c7aaa19534
commit
92c10ef33e
5 changed files with 10 additions and 8 deletions
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, self, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
packages.${system} = {
|
||||
openapi-generate-html = import ./openapi-generate-html.nix {
|
||||
inherit (pkgs) buildNpmPackage fetchFromGitHub;
|
||||
};
|
||||
|
||||
openapi-mock = import ./openapi-mock.nix {
|
||||
inherit (pkgs) buildGoModule fetchFromGitHub;
|
||||
};
|
||||
};
|
||||
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
openapi-generator-cli
|
||||
openapi-tui
|
||||
|
||||
self.packages.${system}.openapi-generate-html
|
||||
self.packages.${system}.openapi-mock
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue