diff options
author | Yann Herklotz <git@yannherklotz.com> | 2019-10-06 23:19:19 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2019-10-06 23:19:19 +0100 |
commit | 41c88cd7cad64761a6fe783c5225a1de187c5d87 (patch) | |
tree | a5e0953a626f05fcaa149a227042bf39a316a837 /default.nix | |
parent | ebe4ed7c3eeecc3c17d2832294bdb190279939ca (diff) | |
download | verismith-41c88cd7cad64761a6fe783c5225a1de187c5d87.tar.gz verismith-41c88cd7cad64761a6fe783c5225a1de187c5d87.zip |
Pin the nix repository
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/default.nix b/default.nix index 7a9f04f..1a135c0 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,16 @@ -{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc865", doBenchmark ? false } : +{ nixpkgs ? null, compiler ? "ghc865", doBenchmark ? false } : let - variant = if doBenchmark then nixpkgs.pkgs.haskell.lib.doBenchmark else nixpkgs.pkgs.lib.id; - verismith = nixpkgs.pkgs.haskellPackages.callCabal2nix "verismith" (./.) {}; + sysPkg = import <nixpkgs> { }; + pinnedPkg = builtins.fetchGit { + name = "nixos-unstable-2019-10-06"; + url = https://github.com/nixos/nixpkgs/; + rev = "271fef8a4eb03cd9de0c1fe2f0b7f4a16c2de49a"; + }; + npkgs = if nixpkgs == null then + import pinnedPkg {} + else + import nixpkgs {}; + variant = if doBenchmark then npkgs.pkgs.haskell.lib.doBenchmark else npkgs.pkgs.lib.id; + verismith = npkgs.pkgs.haskellPackages.callCabal2nix "verismith" (./.) {}; in variant verismith |