gomod2nix: Filter builder expressions from cli build

This commit is contained in:
adisbladis 2022-05-29 17:06:13 +08:00
parent 453a78f7b3
commit ce3a6771f0

View file

@ -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
'';
}