about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-01-22 14:12:00 +0100
committersternenseemann <sternenseemann@systemli.org>2023-02-05 14:01:25 +0100
commit328d6f84992c24a62e59f42bd8ec32cd42f3225e (patch)
treed035d8955f811c73b80d8627857a7579240e9869 /pkgs/development/compilers/ghc
parent36005f52b82650de38318ef295120ecdbdc54226 (diff)
downloadnixlib-328d6f84992c24a62e59f42bd8ec32cd42f3225e.tar
nixlib-328d6f84992c24a62e59f42bd8ec32cd42f3225e.tar.gz
nixlib-328d6f84992c24a62e59f42bd8ec32cd42f3225e.tar.bz2
nixlib-328d6f84992c24a62e59f42bd8ec32cd42f3225e.tar.lz
nixlib-328d6f84992c24a62e59f42bd8ec32cd42f3225e.tar.xz
nixlib-328d6f84992c24a62e59f42bd8ec32cd42f3225e.tar.zst
nixlib-328d6f84992c24a62e59f42bd8ec32cd42f3225e.zip
haskell.compiler.ghc8107Binary: tag bindists built using hadrian
Surprisingly, the aarch64-darwin bindist for 8.10.7 was still built
using make.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/8.10.7-binary.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/8.10.7-binary.nix b/pkgs/development/compilers/ghc/8.10.7-binary.nix
index 94ad5a78a0a7..22552fa67fb2 100644
--- a/pkgs/development/compilers/ghc/8.10.7-binary.nix
+++ b/pkgs/development/compilers/ghc/8.10.7-binary.nix
@@ -137,6 +137,7 @@ let
           # instead of `libtinfo.so.*.`
           { nixPackage = ncurses6; fileToCheckFor = "libncursesw.so.6"; }
         ];
+        isHadrian = true;
       };
     };
   };
@@ -416,6 +417,13 @@ stdenv.mkDerivation rec {
 
     # Our Cabal compiler name
     haskellCompilerName = "ghc-${version}";
+  } // lib.optionalAttrs (binDistUsed.isHadrian or false) {
+    # Normal GHC derivations expose the hadrian derivation used to build them
+    # here. In the case of bindists we just make sure that the attribute exists,
+    # as it is used for checking if a GHC derivation has been built with hadrian.
+    # The isHadrian mechanism will become obsolete with GHCs that use hadrian
+    # exclusively, i.e. 9.6 (and 9.4?).
+    hadrian = null;
   };
 
   meta = rec {