zstd: fixup wrong preInstall order for isDarwin

This regressed in 03e499425 (PR #129873).
This commit is contained in:
Vladimír Čunát 2021-07-25 09:42:35 +02:00
parent 6a5e4f2c3d
commit 76f4182a36
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -73,10 +73,10 @@ stdenv.mkDerivation rec {
substituteInPlace ../programs/zstdless \
--replace "zstdcat" "$bin/bin/zstdcat"
'' + lib.optionalString stdenv.isDarwin ''
install_name_tool -change @rpath/libzstd.1.dylib $out/lib/libzstd.1.dylib $bin/bin/pzstd
'' + lib.optionalString buildContrib ''
cp contrib/pzstd/pzstd $bin/bin/pzstd
'' + lib.optionalString stdenv.isDarwin ''
install_name_tool -change @rpath/libzstd.1.dylib $out/lib/libzstd.1.dylib $bin/bin/pzstd
'';
outputs = [ "bin" "dev" ]