diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-04-05 00:02:54 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-04-05 00:02:54 +0200 |
commit | 52f82285f68116aa2d4559ef9628ebfd90b8f336 (patch) | |
tree | 8965f9b1efbfe704f8a422b49f28237d8331c591 /pkgs/development/libraries/gobject-introspection | |
parent | 5d4c6f7bdae4ad01411d535d8c852cdf1d065af7 (diff) |
gobject-introspection: Clean libregress symlink
Adding phases to preInstallPhases is not possible in preBuild since by that time, phases is already populated.
Diffstat (limited to 'pkgs/development/libraries/gobject-introspection')
-rw-r--r-- | pkgs/development/libraries/gobject-introspection/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/gobject-introspection/default.nix b/pkgs/development/libraries/gobject-introspection/default.nix index f754756f768bd..cf889c282043e 100644 --- a/pkgs/development/libraries/gobject-introspection/default.nix +++ b/pkgs/development/libraries/gobject-introspection/default.nix @@ -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 = { |