gobject-introspection: Clean libregress symlink

Adding phases to preInstallPhases is not possible in preBuild since by that time, phases is already populated.
This commit is contained in:
Jan Tojnar 2020-04-05 00:02:54 +02:00
parent 5d4c6f7bda
commit 52f82285f6
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -62,10 +62,10 @@ stdenv.mkDerivation rec {
# We are using a symlink that we will delete before installation.
mkdir -p $out/lib
ln -s $PWD/tests/scanner/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary} $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary}
cleanLibregressSymlink() {
rm $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary}
}
preInstallPhases="$preInstallPhases cleanLibregressSymlink"
'';
preInstall = ''
rm $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary}
'';
passthru = {