From 63689564a2e39ef9b43a1f07c9501774e3ed3685 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 14 Sep 2020 09:15:44 -0400 Subject: [PATCH] Pin haskell.nix When it changes we often have to rebuild ghc ... :( --- nixos/modules/leasereport.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/modules/leasereport.nix b/nixos/modules/leasereport.nix index 8695a51f..095ad090 100644 --- a/nixos/modules/leasereport.nix +++ b/nixos/modules/leasereport.nix @@ -1,5 +1,12 @@ { callPackage }: let leasereport = import ./leasereport-repo.nix; + + # Pin a particular version of haskell.nix. The particular version isn't + # special. It's just recent at the time this expression was written and it + # is known to work with LeaseReport. It could be bumped if necessary but + # this would probably only happen as a result of bumping the resolver in + # stack.yaml. + haskellNixSrc ? builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/31fd01e14729e686de0a915b9bc4ff70397a84c7.tar.gz in - (callPackage "${leasereport}/nix" { }).LeaseReport.components.exes.LeaseReport + (callPackage "${leasereport}/nix" { inherit haskellNixSrc; }).LeaseReport.components.exes.LeaseReport -- GitLab