parent
308456a7a7
commit
be261a1ede
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, perl, nettools, java, polyml, z3 }:
|
{ stdenv, fetchurl, perl, nettools, java, polyml, z3, rlwrap }:
|
||||||
# nettools needed for hostname
|
# nettools needed for hostname
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -23,21 +23,14 @@ stdenv.mkDerivation rec {
|
|||||||
sourceRoot = dirname;
|
sourceRoot = dirname;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
ENV=$(type -p env)
|
patchShebangs .
|
||||||
patchShebangs "."
|
|
||||||
substituteInPlace lib/Tools/env \
|
cat >contrib/z3*/etc/settings <<EOF
|
||||||
--replace /usr/bin/env $ENV
|
Z3_HOME=${z3}
|
||||||
substituteInPlace lib/Tools/install \
|
Z3_VERSION=${z3.version}
|
||||||
--replace /usr/bin/env $ENV
|
Z3_SOLVER=${z3}/bin/z3
|
||||||
sed -i 's|isabelle_java java|${java}/bin/java|g' lib/Tools/java
|
Z3_INSTALLED=yes
|
||||||
substituteInPlace etc/settings \
|
EOF
|
||||||
--subst-var-by ML_HOME "${polyml}/bin"
|
|
||||||
substituteInPlace contrib/jdk/etc/settings \
|
|
||||||
--replace ISABELLE_JDK_HOME= '#ISABELLE_JDK_HOME='
|
|
||||||
substituteInPlace lib/scripts/run-polyml* lib/scripts/polyml-version \
|
|
||||||
--replace '$ML_HOME/poly' ${polyml}/bin/poly
|
|
||||||
substituteInPlace contrib/z3*/etc/settings \
|
|
||||||
--replace '$Z3_HOME/z3' '${z3}/bin/z3'
|
|
||||||
|
|
||||||
cat >contrib/polyml-*/etc/settings <<EOF
|
cat >contrib/polyml-*/etc/settings <<EOF
|
||||||
ML_SYSTEM_64=true
|
ML_SYSTEM_64=true
|
||||||
@ -49,7 +42,14 @@ stdenv.mkDerivation rec {
|
|||||||
ML_SOURCES="\$POLYML_HOME/src"
|
ML_SOURCES="\$POLYML_HOME/src"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for comp in contrib/jdk contrib/polyml-*; do
|
cat >contrib/jdk/etc/settings <<EOF
|
||||||
|
ISABELLE_JAVA_PLATFORM=${stdenv.system}
|
||||||
|
ISABELLE_JDK_HOME=${java}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo ISABELLE_LINE_EDITOR=${rlwrap}/bin/rlwrap >>etc/settings
|
||||||
|
|
||||||
|
for comp in contrib/jdk contrib/polyml-* contrib/z3-*; do
|
||||||
rm -rf $comp/x86*
|
rm -rf $comp/x86*
|
||||||
done
|
done
|
||||||
'' + (if ! stdenv.isLinux then "" else ''
|
'' + (if ! stdenv.isLinux then "" else ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user