From 4021d4d5ee7338ddaff4a1c5c2e41c85da206f18 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Tue, 8 Aug 2017 17:19:02 +0000 Subject: [PATCH] Make version a parameter in GHC HEAD derivation If you want to override the source but the major version changes (ie 8.1 -> 8.3) then you also have to modify the version. Otherwise the build will fail with difficult to understand errors, making version a parameter makes it easy to override. --- pkgs/development/compilers/ghc/head.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index 5a505f39b1a..6573c60ac3a 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -5,6 +5,7 @@ # If enabled GHC will be build with the GPL-free but slower integer-simple # library instead of the faster but GPLed integer-gmp library. , enableIntegerSimple ? false, gmp +, version ? "8.1.20170106" }: let @@ -12,7 +13,6 @@ let commonBuildInputs = [ ghc perl autoconf automake happy alex python3 ]; - version = "8.1.20170106"; rev = "b4f2afe70ddbd0576b4eba3f82ba1ddc52e9b3bd"; commonPreConfigure = ''