3
0
Fork 0
forked from mirrors/nixpkgs

lowdown: move so version into variable

This commit is contained in:
sternenseemann 2023-05-27 12:50:32 +02:00
parent cf7bda3428
commit 048a14cd1e

View file

@ -49,11 +49,12 @@ stdenv.mkDerivation rec {
postInstall =
let
inherit (stdenv.hostPlatform.extensions) sharedLibrary;
soVersion = "2";
in
lib.optionalString (enableShared && stdenv.isDarwin) ''
darwinDylib="$lib/lib/liblowdown.2.dylib"
mv "$lib/lib/liblowdown.so.2" "$darwinDylib"
darwinDylib="$lib/lib/liblowdown.${soVersion}.dylib"
mv "$lib/lib/liblowdown.so.${soVersion}" "$darwinDylib"
# Make sure we are re-creating a symbolic link here
test -L "$lib/lib/liblowdown.so"