isabelle: 2016 -> 2016-1
This commit is contained in:
parent
59dbcefaa7
commit
3d301e384e
@ -1,26 +1,25 @@
|
|||||||
{ stdenv, fetchurl, perl, nettools, java, polyml }:
|
{ stdenv, fetchurl, perl, nettools, java, polyml, z3 }:
|
||||||
# nettools needed for hostname
|
# nettools needed for hostname
|
||||||
|
|
||||||
let
|
let
|
||||||
dirname = "Isabelle2016";
|
dirname = "Isabelle2016-1";
|
||||||
theories = ["HOL" "FOL" "ZF"];
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "isabelle-2016";
|
name = "isabelle-2016-1";
|
||||||
inherit dirname theories;
|
inherit dirname;
|
||||||
|
|
||||||
src = if stdenv.isDarwin
|
src = if stdenv.isDarwin
|
||||||
then fetchurl {
|
then fetchurl {
|
||||||
url = "http://isabelle.in.tum.de/website-${dirname}/dist/${dirname}.dmg";
|
url = "http://isabelle.in.tum.de/website-${dirname}/dist/${dirname}.dmg";
|
||||||
sha256 = "0wawf0cjc52h8hif1867p33qhlh6qz0fy5i2kr1gbf7psickd6iw";
|
sha256 = "0553l7m2z32ajmiv6sgg11rh16n490w8i4q9hr7vx4zzggr9nrlr";
|
||||||
}
|
}
|
||||||
else fetchurl {
|
else fetchurl {
|
||||||
url = "http://isabelle.in.tum.de/website-${dirname}/dist/${dirname}_linux.tar.gz";
|
url = "http://isabelle.in.tum.de/website-${dirname}/dist/${dirname}_linux.tar.gz";
|
||||||
sha256 = "0jh1qrsyib13fycymwvw7dq7xfy4iyplwq0s65ash842cdzkbxb4";
|
sha256 = "1w1cgfmmi1sr43z6hczyc29lxlnlz7dd8fa88ai44wkc13y05b5r";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl polyml ]
|
buildInputs = [ perl polyml z3 ]
|
||||||
++ stdenv.lib.optionals (!stdenv.isDarwin) [ nettools java ];
|
++ stdenv.lib.optionals (!stdenv.isDarwin) [ nettools java ];
|
||||||
|
|
||||||
sourceRoot = dirname;
|
sourceRoot = dirname;
|
||||||
@ -42,7 +41,14 @@ stdenv.mkDerivation {
|
|||||||
--replace '$POLYML_HOME/$PLATFORM/polyml' ${polyml}/bin/poly
|
--replace '$POLYML_HOME/$PLATFORM/polyml' ${polyml}/bin/poly
|
||||||
substituteInPlace lib/scripts/run-polyml* lib/scripts/polyml-version \
|
substituteInPlace lib/scripts/run-polyml* lib/scripts/polyml-version \
|
||||||
--replace '$ML_HOME/poly' ${polyml}/bin/poly
|
--replace '$ML_HOME/poly' ${polyml}/bin/poly
|
||||||
'';
|
substituteInPlace contrib/z3*/etc/settings \
|
||||||
|
--replace '$Z3_HOME/z3' '${z3}/bin/z3'
|
||||||
|
'' + (if ! stdenv.isLinux then "" else ''
|
||||||
|
arch=${if stdenv.system == "x86_64-linux" then "x86_64-linux" else "x86-linux"}
|
||||||
|
for f in contrib/*/$arch/{bash_process,epclextract,eprover,nunchaku,SPASS}; do
|
||||||
|
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f"
|
||||||
|
done
|
||||||
|
'');
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user