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:
Will Dietz 2018-07-12 18:46:28 -05:00
parent b26c224293
commit 6ff8685057

View file

@ -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; {