default.nix: Filter tests

This commit is contained in:
adisbladis 2021-01-12 17:55:00 +01:00
parent addf1164e9
commit 06cfdc3c54
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -3,7 +3,10 @@
buildGoApplication {
pname = "gomod2nix";
version = "0.1";
src = lib.cleanSource ./.;
src = lib.cleanSourceWith {
filter = name: type: ! lib.hasSuffix "tests" name;
src = lib.cleanSource ./.;
};
modules = ./gomod2nix.toml;
subPackages = [ "." ];