summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/head.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-03 16:29:18 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-03 17:04:19 -0500
commit3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed (patch)
tree4cd9880c7ab00e31e9cffca3dfb6641675244c89 /pkgs/development/compilers/ghc/head.nix
parent0df29e125997bf862335ebdafacbaa609e312adf (diff)
downloadnixlib-3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed.tar
nixlib-3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed.tar.gz
nixlib-3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed.tar.bz2
nixlib-3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed.tar.lz
nixlib-3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed.tar.xz
nixlib-3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed.tar.zst
nixlib-3fb5fd0060d51b0a7c52921dc1c66cee6fe622ed.zip
ghc: Normalize derivations in hash-preserving ways
Diffstat (limited to 'pkgs/development/compilers/ghc/head.nix')
-rw-r--r--pkgs/development/compilers/ghc/head.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix
index c5be301baf68..9b4c932eb115 100644
--- a/pkgs/development/compilers/ghc/head.nix
+++ b/pkgs/development/compilers/ghc/head.nix
@@ -29,7 +29,7 @@ let
 in
 stdenv.mkDerivation (rec {
   inherit version rev;
-  name = "ghc-${version}";
+  name = "${targetPrefix}ghc-${version}";
 
   src = fetchgit {
     url = "git://git.haskell.org/ghc.git";
@@ -107,8 +107,6 @@ stdenv.mkDerivation (rec {
   };
 
 } // stdenv.lib.optionalAttrs (cross != null) {
-  name = "${cross.config}-ghc-${version}";
-
   configureFlags = [
     "CC=${stdenv.cc}/bin/${cross.config}-cc"
     "LD=${stdenv.cc.bintools}/bin/${cross.config}-ld"