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