From 81c8d158a86631cd6de7b73889730ed375dfb463 Mon Sep 17 00:00:00 2001 From: Guillaume Bouchard Date: Mon, 31 May 2021 00:26:03 +0200 Subject: [PATCH] ghc: add missing meta data `haskellCompilerName` in cabal2nix and hence ghc 8.10.2 and 8.6.5 "-binary" were not working correctly in this context. --- pkgs/development/compilers/ghc/8.10.2-binary.nix | 3 +++ pkgs/development/compilers/ghc/8.6.5-binary.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkgs/development/compilers/ghc/8.10.2-binary.nix b/pkgs/development/compilers/ghc/8.10.2-binary.nix index 13eba00fae6b..ad1a47e5cc9f 100644 --- a/pkgs/development/compilers/ghc/8.10.2-binary.nix +++ b/pkgs/development/compilers/ghc/8.10.2-binary.nix @@ -212,6 +212,9 @@ stdenv.mkDerivation rec { passthru = { targetPrefix = ""; enableShared = true; + + # Our Cabal compiler name + haskellCompilerName = "ghc-${version}"; }; meta = rec { diff --git a/pkgs/development/compilers/ghc/8.6.5-binary.nix b/pkgs/development/compilers/ghc/8.6.5-binary.nix index 092511ba6d78..8a0994b8b6a5 100644 --- a/pkgs/development/compilers/ghc/8.6.5-binary.nix +++ b/pkgs/development/compilers/ghc/8.6.5-binary.nix @@ -171,6 +171,9 @@ stdenv.mkDerivation rec { passthru = { targetPrefix = ""; enableShared = true; + + # Our Cabal compiler name + haskellCompilerName = "ghc-${version}"; }; meta = rec {