nixpkgs: yices 2.2.1 -> 2.3.1, now with source

It's still under a non-commercial license, but the source build is waay
better than the binary build. Can probably work on OS X too now.

Signed-off-by: Austin Seipp <aseipp@pobox.com>

+11 -28
+11 -28
pkgs/applications/science/logic/yices/default.nix
··· 1 - { stdenv, fetchurl }: 1 + { stdenv, fetchurl, gmp, gperf, autoreconfHook }: 2 2 3 - assert stdenv.isLinux; 4 - 5 - let 6 - libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.libc ]; 7 - in 8 3 stdenv.mkDerivation rec { 9 4 name = "yices-${version}"; 10 - version = "2.2.1"; 5 + version = "2.3.1"; 11 6 12 - src = 13 - if stdenv.system == "i686-linux" 14 - then fetchurl { 15 - url = "http://yices.csl.sri.com/cgi-bin/yices2-newdownload.cgi?file=yices-2.2.1-i686-pc-linux-gnu-static-gmp.tar.gz&accept=I+accept"; 16 - name = "yices-${version}-i686.tar.gz"; 17 - sha256 = "12jzk3kqlbqa5x6rl92cpzj7dch7gm7fnbj72wifvwgdj4zyhrra"; 18 - } 19 - else fetchurl { 20 - url = "http://yices.csl.sri.com/cgi-bin/yices2-newdownload.cgi?file=yices-2.2.1-x86_64-unknown-linux-gnu-static-gmp.tar.gz&accept=I+accept"; 21 - name = "yices-${version}-x86_64.tar.gz"; 22 - sha256 = "0fpmihf6ykcg4qbsimkamgcwp4sl1xyxmz7q28ily91rd905ijaj"; 23 - }; 7 + src = fetchurl { 8 + url = "http://yices.csl.sri.com/cgi-bin/yices2-newnewdownload.cgi?file=yices-2.3.1-src.tar.gz&accept=I+Agree"; 9 + name = "yices-${version}-src.tar.gz"; 10 + sha256 = "1da70n0cah0dh3pk7fcrvjkszx9qmhc0csgl15jqa7bdh707k2zs"; 11 + }; 24 12 25 - buildPhase = false; 26 - installPhase = '' 27 - mkdir -p $out/bin $out/lib $out/include 28 - cd bin && mv * $out/bin && cd .. 29 - cd lib && mv * $out/lib && cd .. 30 - cd include && mv * $out/include && cd .. 31 - 32 - patchelf --set-rpath ${libPath} $out/lib/libyices.so.${version} 33 - ''; 13 + configureFlags = [ "--with-static-gmp=${gmp}/lib/libgmp.a" 14 + "--with-static-gmp-include-dir=${gmp}/include" 15 + ]; 16 + buildInputs = [ gmp gperf autoreconfHook ]; 34 17 35 18 meta = { 36 19 description = "A high-performance theorem prover and SMT solver";