mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-09 12:09:08 +00:00
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";
|
||||
version = "0.1";
|
||||
src = lib.cleanSourceWith {
|
||||
filter = name: type: ! lib.hasSuffix "tests" name;
|
||||
filter = name: type: (! lib.hasSuffix "tests" name) && (! lib.hasSuffix "builder" name);
|
||||
src = lib.cleanSource ./.;
|
||||
};
|
||||
modules = ./gomod2nix.toml;
|
||||
|
@ -18,6 +18,5 @@ buildGoApplication {
|
|||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/gomod2nix --prefix PATH : ${lib.makeBinPath [ go ]}
|
||||
rm -f $out/bin/builder
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue