haskellPackages.ihaskell: use enableSharedExecutable over adhoc flag

This commit is contained in:
sternenseemann 2022-02-08 12:39:45 +01:00
parent 63e8fc415f
commit 6a6a2cdbe9

View file

@ -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