Skip to content

Commit

Permalink
Pin the nix repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ymherklotz committed Oct 6, 2019
1 parent ebe4ed7 commit 41c88cd
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 41c88cd

Please sign in to comment.