diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/default.nix b/default.nix index b47c0be..506be0e 100644 --- a/default.nix +++ b/default.nix @@ -18,7 +18,20 @@ rec { 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 ''; |