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:
parent
5d4c6f7bda
commit
52f82285f6
@ -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() {
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
rm $out/lib/libregress-1.0${stdenv.targetPlatform.extensions.sharedLibrary}
|
||||
}
|
||||
preInstallPhases="$preInstallPhases cleanLibregressSymlink"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
|
Loading…
Reference in New Issue
Block a user