From 3bdb476804afc4df7ee223d3f4937552f6372631 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 23 Sep 2021 15:22:52 +0200 Subject: [PATCH] haskell.compiler.ghc*: use pname instead of name This also means the -binary suffix is moved *before* the version which prevents builtins.parseDrvName from interpreting it as part of the version. --- pkgs/development/compilers/ghc/8.10.2-binary.nix | 3 +-- pkgs/development/compilers/ghc/8.10.7-binary.nix | 3 +-- pkgs/development/compilers/ghc/8.10.7.nix | 2 +- pkgs/development/compilers/ghc/8.6.5-binary.nix | 3 +-- pkgs/development/compilers/ghc/8.8.4.nix | 2 +- pkgs/development/compilers/ghc/9.0.1.nix | 2 +- pkgs/development/compilers/ghc/9.2.1.nix | 2 +- pkgs/development/compilers/ghc/head.nix | 2 +- 8 files changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/compilers/ghc/8.10.2-binary.nix b/pkgs/development/compilers/ghc/8.10.2-binary.nix index b571149e5967..aba238c1d069 100644 --- a/pkgs/development/compilers/ghc/8.10.2-binary.nix +++ b/pkgs/development/compilers/ghc/8.10.2-binary.nix @@ -138,8 +138,7 @@ in stdenv.mkDerivation rec { inherit version; - - name = "ghc-${version}-binary"; + pname = "ghc-binary"; src = fetchurl binDistUsed.src; diff --git a/pkgs/development/compilers/ghc/8.10.7-binary.nix b/pkgs/development/compilers/ghc/8.10.7-binary.nix index 34bb25e8983e..7ae101a5f50c 100644 --- a/pkgs/development/compilers/ghc/8.10.7-binary.nix +++ b/pkgs/development/compilers/ghc/8.10.7-binary.nix @@ -152,8 +152,7 @@ in stdenv.mkDerivation rec { inherit version; - - name = "ghc-${version}-binary"; + pname = "ghc-binary"; src = fetchurl binDistUsed.src; diff --git a/pkgs/development/compilers/ghc/8.10.7.nix b/pkgs/development/compilers/ghc/8.10.7.nix index 411146569ab0..1f8135a2954b 100644 --- a/pkgs/development/compilers/ghc/8.10.7.nix +++ b/pkgs/development/compilers/ghc/8.10.7.nix @@ -144,7 +144,7 @@ let in stdenv.mkDerivation (rec { version = "8.10.7"; - name = "${targetPrefix}ghc-${version}"; + pname = "${targetPrefix}ghc"; src = fetchurl { url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz"; diff --git a/pkgs/development/compilers/ghc/8.6.5-binary.nix b/pkgs/development/compilers/ghc/8.6.5-binary.nix index d30275dee124..b1126fda7d26 100644 --- a/pkgs/development/compilers/ghc/8.6.5-binary.nix +++ b/pkgs/development/compilers/ghc/8.6.5-binary.nix @@ -34,8 +34,7 @@ in stdenv.mkDerivation rec { version = "8.6.5"; - - name = "ghc-${version}-binary"; + pname = "ghc-binary"; # https://downloads.haskell.org/~ghc/8.6.5/ src = fetchurl ({ diff --git a/pkgs/development/compilers/ghc/8.8.4.nix b/pkgs/development/compilers/ghc/8.8.4.nix index e2a65a19791b..184102fb7610 100644 --- a/pkgs/development/compilers/ghc/8.8.4.nix +++ b/pkgs/development/compilers/ghc/8.8.4.nix @@ -152,7 +152,7 @@ let in stdenv.mkDerivation (rec { version = "8.8.4"; - name = "${targetPrefix}ghc-${version}"; + pname = "${targetPrefix}ghc"; src = fetchurl { url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz"; diff --git a/pkgs/development/compilers/ghc/9.0.1.nix b/pkgs/development/compilers/ghc/9.0.1.nix index af740c01f5bf..b629e386cc0b 100644 --- a/pkgs/development/compilers/ghc/9.0.1.nix +++ b/pkgs/development/compilers/ghc/9.0.1.nix @@ -138,7 +138,7 @@ let in stdenv.mkDerivation (rec { version = "9.0.1"; - name = "${targetPrefix}ghc-${version}"; + pname = "${targetPrefix}ghc"; src = fetchurl { url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz"; diff --git a/pkgs/development/compilers/ghc/9.2.1.nix b/pkgs/development/compilers/ghc/9.2.1.nix index cffd91d695da..f6c6520dfb4d 100644 --- a/pkgs/development/compilers/ghc/9.2.1.nix +++ b/pkgs/development/compilers/ghc/9.2.1.nix @@ -137,7 +137,7 @@ let in stdenv.mkDerivation (rec { version = "9.2.0.20210821"; - name = "${targetPrefix}ghc-${version}"; + pname = "${targetPrefix}ghc"; src = fetchurl { url = "https://downloads.haskell.org/ghc/9.2.1-rc1/ghc-${version}-src.tar.xz"; diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index cb2cd79a482c..c34b0bbc190b 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -149,7 +149,7 @@ in stdenv.mkDerivation (rec { inherit version; inherit (src) rev; - name = "${targetPrefix}ghc-${version}"; + pname = "${targetPrefix}ghc"; src = fetchgit { url = "https://gitlab.haskell.org/ghc/ghc.git/";