forked from mirrors/gomod2nix
gomod2nix: Filter builder expressions from cli build
This commit is contained in:
parent
453a78f7b3
commit
ce3a6771f0
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@ buildGoApplication {
|
||||||
pname = "gomod2nix";
|
pname = "gomod2nix";
|
||||||
version = "0.1";
|
version = "0.1";
|
||||||
src = lib.cleanSourceWith {
|
src = lib.cleanSourceWith {
|
||||||
filter = name: type: ! lib.hasSuffix "tests" name;
|
filter = name: type: (! lib.hasSuffix "tests" name) && (! lib.hasSuffix "builder" name);
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
};
|
};
|
||||||
modules = ./gomod2nix.toml;
|
modules = ./gomod2nix.toml;
|
||||||
|
@ -18,6 +18,5 @@ buildGoApplication {
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/gomod2nix --prefix PATH : ${lib.makeBinPath [ go ]}
|
wrapProgram $out/bin/gomod2nix --prefix PATH : ${lib.makeBinPath [ go ]}
|
||||||
rm -f $out/bin/builder
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue