mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
yices: fix symlink to match version of package
To help avoid this happening again, derive the string to use from the version directly instead of embedding it in installPhase.
This commit is contained in:
parent
b26c224293
commit
6ff8685057
@ -26,9 +26,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Includes a fix for the embedded soname being libyices.so.2.5, but
|
||||
# only installing the libyices.so.2.5.x file.
|
||||
installPhase = ''
|
||||
installPhase = let
|
||||
ver_XdotY = builtins.concatStringsSep "." (stdenv.lib.take 2 (builtins.splitVersion version));
|
||||
in ''
|
||||
make install LDCONFIG=true
|
||||
(cd $out/lib && ln -s -f libyices.so.${version} libyices.so.2.5)
|
||||
(cd $out/lib && ln -s -f libyices.so.${version} libyices.so.${ver_XdotY}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user