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
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue