Refactor
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
549b76b863
commit
b1dc73950c
1 changed files with 11 additions and 4 deletions
15
flake.nix
15
flake.nix
|
@ -6,20 +6,27 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
inherit (pkgs)
|
||||
buildGoModule
|
||||
buildNpmPackage
|
||||
fetchFromGitHub
|
||||
mkShell
|
||||
;
|
||||
in
|
||||
{
|
||||
packages.${system} = {
|
||||
openapi-generate-html = import ./openapi-generate-html.nix {
|
||||
inherit (pkgs) buildNpmPackage fetchFromGitHub;
|
||||
inherit buildNpmPackage fetchFromGitHub;
|
||||
};
|
||||
|
||||
openapi-mock = import ./openapi-mock.nix {
|
||||
inherit (pkgs) buildGoModule fetchFromGitHub;
|
||||
inherit buildGoModule fetchFromGitHub;
|
||||
};
|
||||
};
|
||||
|
||||
devShells.${system} = {
|
||||
go-api = pkgs.mkShell {
|
||||
go-api = mkShell {
|
||||
packages = with pkgs; [
|
||||
curlMinimal
|
||||
go
|
||||
|
@ -29,7 +36,7 @@
|
|||
shellHook = ''go version'';
|
||||
};
|
||||
|
||||
openapi = pkgs.mkShell {
|
||||
openapi = mkShell {
|
||||
packages = with pkgs; [
|
||||
openapi-generator-cli
|
||||
openapi-tui
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue