Merge pull request #141541 from trofi/fix-yices-links

authored by

Artturi and committed by
GitHub
6d65c1c5 bc12543f

+9 -4
+9 -4
pkgs/applications/science/logic/yices/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "yices"; 5 - version = "2.6.3"; 5 + # We never want X.Y.${odd} versions as they are moving development tags. 6 + version = "2.6.2"; 6 7 7 8 src = fetchFromGitHub { 8 9 owner = "SRI-CSL"; 9 10 repo = "yices2"; 10 11 rev = "Yices-${version}"; 11 - sha256 = "01fi818lbkwilfcf1dz2dpxkcc1kh8ls0sl5aynyx9pwfn2v03zl"; 12 + sha256 = "1jx3854zxvfhxrdshbipxfgyq1yxb9ll9agjc2n0cj4vxkjyh9mn"; 12 13 }; 13 14 14 15 nativeBuildInputs = [ autoreconfHook ]; ··· 25 26 # Usual shenanigans 26 27 patchPhase = "patchShebangs tests/regress/check.sh"; 27 28 28 - # Includes a fix for the embedded soname being libyices.so.2.5, but 29 - # only installing the libyices.so.2.5.x file. 29 + # Includes a fix for the embedded soname being libyices.so.X.Y, but 30 + # only installing the libyices.so.X.Y.Z file. 30 31 installPhase = let 31 32 ver_XdotY = lib.versions.majorMinor version; 32 33 in '' 33 34 make install LDCONFIG=true 35 + # guard against packaging of unstable versions: they 36 + # have a soname of hext (not current) release. 37 + echo "Checking expected library version to be ${version}" 38 + [ -f $out/lib/libyices.so.${version} ] 34 39 ln -sfr $out/lib/libyices.so.{${version},${ver_XdotY}} 35 40 ''; 36 41