on master help sign in
Use gitignoreSrc to prevent unnecessary rebuilds
commit3a3bd4a9d8c6bc75a622ad1931db4bd616d08941 authorSridhar Ratnakumar <srid@srid.ca> dateFri 31 Jul 2020, 17:43 (6 years ago) parent839ef88
1 file changed+11−1
default.nix+11−1
default.nix+11−1
@@ -5,9 +5,19 @@ let
55 url = "https://github.com/nixos/nixpkgs/archive/${nixpkgsRev}.tar.gz";
66 sha256 = nixpkgsSha;
77 }) {};
8+ gitignoreSrc = pkgs.fetchFromGitHub {
9+ owner = "hercules-ci";
10+ repo = "gitignore";
11+ # put the latest commit sha of gitignore Nix library here:
12+ rev = "c4662e6";
13+ # use what nix suggests in the mismatch message here:
14+ sha256 = "sha256:1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx";
15+ };
16+ inherit (import gitignoreSrc { inherit (pkgs); }) gitignoreSource;
817in
918 pkgs.haskellPackages.developPackage {
10− root = ./.;
19+ root = gitignoreSource ./.;
20+ name = "jrec";
1121 modifier = drv:
1222 pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages;
1323 [ cabal-install