From d550bbb3c77a952f530c855e0f2745c2e7b09f9f Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 8 Feb 2022 12:39:45 +0100 Subject: [PATCH] haskellPackages.ihaskell: use enableSharedExecutable over adhoc flag --- pkgs/development/haskell-modules/configuration-nix.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 035e8cda1ea6..032b2577c515 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -734,12 +734,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