From eb5f4d3d36199d48cd2cf6a5cb0fe2da569e489b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 9 Aug 2015 16:28:12 +0200 Subject: [PATCH] ghc: make sure the HEAD version is built with a deterministic version number --- pkgs/development/compilers/ghc/head.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index c92f002a0262..6c3041f2943c 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -29,6 +29,8 @@ stdenv.mkDerivation rec { postUnpack = '' pushd ghc-${builtins.substring 0 7 rev} + echo ${version} >VERSION + echo ${rev} >GIT_COMMIT_ID patchShebangs . ./boot popd