diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2017-08-08 17:19:02 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2017-08-08 17:19:02 +0000 |
commit | 4021d4d5ee7338ddaff4a1c5c2e41c85da206f18 (patch) | |
tree | 7b06a9c0beb59259f22e38bdfbab2ab7693cb8d2 /pkgs | |
parent | e6808e30ae2b10f09e8f55e340d1b57f24027010 (diff) | |
download | nixlib-4021d4d5ee7338ddaff4a1c5c2e41c85da206f18.tar nixlib-4021d4d5ee7338ddaff4a1c5c2e41c85da206f18.tar.gz nixlib-4021d4d5ee7338ddaff4a1c5c2e41c85da206f18.tar.bz2 nixlib-4021d4d5ee7338ddaff4a1c5c2e41c85da206f18.tar.lz nixlib-4021d4d5ee7338ddaff4a1c5c2e41c85da206f18.tar.xz nixlib-4021d4d5ee7338ddaff4a1c5c2e41c85da206f18.tar.zst nixlib-4021d4d5ee7338ddaff4a1c5c2e41c85da206f18.zip |
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.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/ghc/head.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index 5a505f39b1a7..6573c60ac3ac 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 = '' |