haskell generic-builder: Support installing internal libs.

Fixes #32980.
This commit is contained in:
Shea Levy 2017-12-22 19:25:59 -05:00
parent 857a71cbc5
commit b6d215aa79
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -317,8 +317,14 @@ stdenv.mkDerivation ({
local packageConfFile="$packageConfDir/${pname}-${version}.conf"
mkdir -p "$packageConfDir"
${setupCommand} register --gen-pkg-config=$packageConfFile
if [ -d "$packageConfFile" ]; then
mv "$packageConfFile"/* "$packageConfDir"
rmdir "$packageConfFile"
fi
for packageConfFile in "$packageConfDir"/*; do
local pkgId=$( ${gnused}/bin/sed -n -e 's|^id: ||p' $packageConfFile )
mv $packageConfFile $packageConfDir/$pkgId.conf
done
''}
${optionalString isGhcjs ''
for exeDir in "$out/bin/"*.jsexe; do