about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-02-08 12:39:45 +0100
committersternenseemann <sternenseemann@systemli.org>2022-02-08 12:39:45 +0100
commit6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe (patch)
treec52f7ef674029d1651a3d0b5cd35bafa3deab064 /pkgs/development/haskell-modules
parent63e8fc415fc522979b9f6824c756b7b79e75b861 (diff)
downloadnixlib-6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe.tar
nixlib-6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe.tar.gz
nixlib-6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe.tar.bz2
nixlib-6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe.tar.lz
nixlib-6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe.tar.xz
nixlib-6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe.tar.zst
nixlib-6a6a2cdbe923dbee5e38ba1fd3479cb4b0077afe.zip
haskellPackages.ihaskell: use enableSharedExecutable over adhoc flag
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index f51d9378de6d..544b29c64a24 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -739,12 +739,9 @@ self: super: builtins.intersectAttrs super {
 
   # based on https://github.com/gibiansky/IHaskell/blob/aafeabef786154d81ab7d9d1882bbcd06fc8c6c4/release.nix
   ihaskell = overrideCabal (drv: {
-    configureFlags = (drv.configureFlags or []) ++ [
-      # ihaskell's cabal file forces building a shared executable,
-      # but without passing --enable-executable-dynamic, the RPATH
-      # contains /build/ and leads to a build failure with nix
-      "--enable-executable-dynamic"
-    ];
+    # ihaskell's cabal file forces building a shared executable, which we need
+    # to reflect here or RPATH will contain a reference to /build/.
+    enableSharedExecutables = true;
     preCheck = ''
       export HOME=$TMPDIR/home
       export PATH=$PWD/dist/build/ihaskell:$PATH