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.
commit4021d4d5ee7338ddaff4a1c5c2e41c85da206f18
authorMatthew Pickering <matthewtpickering@gmail.com>
dateTue 8 Aug 2017, 17:19 (9 years ago)
parente6808e3
pkgs/development/compilers/ghc/head.nix+1−1
@@ -5,6 +5,7 @@
55 # If enabled GHC will be build with the GPL-free but slower integer-simple
66 # library instead of the faster but GPLed integer-gmp library.
77, enableIntegerSimple ? false, gmp
8+, version ? "8.1.20170106"
89}:
910
1011let
@@ -12,7 +13,6 @@ let
1213
1314 commonBuildInputs = [ ghc perl autoconf automake happy alex python3 ];
1415
15− version = "8.1.20170106";
1616 rev = "b4f2afe70ddbd0576b4eba3f82ba1ddc52e9b3bd";
1717
1818 commonPreConfigure = ''