about summary refs log tree commit diff
path: root/users/glittershark/xanthous/pkg.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/xanthous/pkg.nix')
-rw-r--r--users/glittershark/xanthous/pkg.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/users/glittershark/xanthous/pkg.nix b/users/glittershark/xanthous/pkg.nix
index fc303a3eda06..98a9b9b6a6b1 100644
--- a/users/glittershark/xanthous/pkg.nix
+++ b/users/glittershark/xanthous/pkg.nix
@@ -1,7 +1,16 @@
 { pkgs ? (import ../../../. {}).third_party }:
 
+let
+  ignore = pkgs.gitignoreSource.gitignoreFilter ./.;
+in
+
 import (pkgs.haskellPackages.haskellSrc2nix {
   name = "xanthous";
-  src = pkgs.gitignoreSource ./.;
+  src = builtins.path {
+    name = "xanthous-source";
+    path = ./.;
+    filter = path: type: ignore path type
+      || builtins.baseNameOf path == "package.yaml";
+  };
   extraCabal2nixOptions = "--hpack";
 })