forked from F1bonacc1/process-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
34 lines (34 loc) · 897 Bytes
/
shell.nix
File metadata and controls
34 lines (34 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
packages =
let
goMod = builtins.readFile ./go.mod;
goLine = builtins.elemAt (pkgs.lib.splitString "\n" goMod) 2;
goLineMapped = builtins.replaceStrings [ " " "." ] [ "_" "_" ] goLine;
go = pkgs."${goLineMapped}";
swag2op = pkgs.buildGoModule {
pname = "swag2op";
version = "v1.0.1";
src = pkgs.fetchFromGitHub {
owner = "zxmfke";
repo = "swagger2openapi3";
rev = "17d7e5a8f5e12164d3a455f179638c5208869272";
sha256 = "sha256-0khXtJ2DB56RLMwPU61K/OQld0w16YxPj89AZ31U3yo=";
};
subPackages = [ "cmd/swag2op" ];
vendorHash = "sha256-y6evAKRDgUChEFwVjTIis1aaMJb8sbvRZwIyHyspy3c=";
doCheck = false;
};
in
with pkgs;
[
go
gopls
gotools
gnumake
gnused
swag2op
];
}