all repos — searchix @ 2e56008ef28109f0895b5918e2d0caeb16a08d8a

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: limit files passed to nix

Alan Pearce
commit

2e56008ef28109f0895b5918e2d0caeb16a08d8a

parent

53c9fb2f72cbc82177404b76a4aad14283f8ced1

1 file changed, 14 insertions(+), 1 deletion(-)

jump to
M default.nixdefault.nix
@@ -18,7 +18,20 @@
searchix = pkgs.buildGoApplication { pname = "searchix"; version = "0.1"; - src = builtins.filterSource (_: type: type != "symlink") ./.; + src = with pkgs.lib.fileset; toSource { + root = ./.; + fileset = intersection + (unions [ + ./go.mod + ./go.sum + ./serve + ./import + ./internal + ./frontend + ]) + (gitTracked ./.); + }; + patchPhase = '' cp ${css} frontend/static/base.css '';