@@ -734,12 +734,9 @@ self: super: builtins.intersectAttrs super {
734734
735735 # based on https://github.com/gibiansky/IHaskell/blob/aafeabef786154d81ab7d9d1882bbcd06fc8c6c4/release.nix
736736 ihaskell = overrideCabal (drv: {
737− configureFlags = (drv.configureFlags or []) ++ [
738− # ihaskell's cabal file forces building a shared executable,
739− # but without passing --enable-executable-dynamic, the RPATH
740− # contains /build/ and leads to a build failure with nix
741− "--enable-executable-dynamic"
742− ];
737+ # ihaskell's cabal file forces building a shared executable, which we need
738+ # to reflect here or RPATH will contain a reference to /build/.
739+ enableSharedExecutables = true;
743740 preCheck = ''
744741 export HOME=$TMPDIR/home
745742 export PATH=$PWD/dist/build/ihaskell:$PATH