forked from mirrors/nixpkgs
lowdown: move so version into variable
This commit is contained in:
parent
cf7bda3428
commit
048a14cd1e
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue