From dcddc1eec6c0191130d872440343d871741d0e44 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 3 Dec 2020 22:44:02 +0100 Subject: [PATCH] pkg.nix: reduce rebuilds by filtering out *.nix --- pkg.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg.nix b/pkg.nix index 98a7266..0ce4098 100644 --- a/pkg.nix +++ b/pkg.nix @@ -14,7 +14,9 @@ mkDerivation { pname = "yammat"; version = "0.0.8"; - src = ./.; + src = builtins.filterSource ( + path: type: builtins.match ".*\.nix" path == null + ) ./.; isLibrary = true; isExecutable = true; libraryHaskellDepends = [