summary refs log tree commit diff
path: root/pkgs/applications/science/logic
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-09-30 23:11:26 -0500
committerJohn Wiegley <johnw@newartisans.com>2014-09-30 23:15:31 -0500
commit10e215a3ae1fc282809356f45c78ffece4525da7 (patch)
tree692580146e9e33c13b7096209dcbc52624b9899a /pkgs/applications/science/logic
parent272c44f1a5769f1d93c4605d6a76fa502e3b4fe4 (diff)
downloadnixlib-10e215a3ae1fc282809356f45c78ffece4525da7.tar
nixlib-10e215a3ae1fc282809356f45c78ffece4525da7.tar.gz
nixlib-10e215a3ae1fc282809356f45c78ffece4525da7.tar.bz2
nixlib-10e215a3ae1fc282809356f45c78ffece4525da7.tar.lz
nixlib-10e215a3ae1fc282809356f45c78ffece4525da7.tar.xz
nixlib-10e215a3ae1fc282809356f45c78ffece4525da7.tar.zst
nixlib-10e215a3ae1fc282809356f45c78ffece4525da7.zip
isabelle: Version 2014 building on Linux and Darwin
Diffstat (limited to 'pkgs/applications/science/logic')
-rw-r--r--pkgs/applications/science/logic/isabelle/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/science/logic/isabelle/default.nix b/pkgs/applications/science/logic/isabelle/default.nix
index 9659ee229307..88bbe820e2f3 100644
--- a/pkgs/applications/science/logic/isabelle/default.nix
+++ b/pkgs/applications/science/logic/isabelle/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, perl, nettools, polyml, proofgeneral }:
+{ stdenv, fetchurl, perl, nettools, java, polyml, proofgeneral }:
 # nettools needed for hostname
 
 let
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
     };
 
   buildInputs = [ perl polyml ]
-             ++ stdenv.lib.optional (!stdenv.isDarwin) nettools;
+             ++ stdenv.lib.optionals (!stdenv.isDarwin) [ nettools java ];
 
   sourceRoot = dirname;
 
@@ -35,10 +35,15 @@ stdenv.mkDerivation {
     substituteInPlace etc/settings \
       --subst-var-by ML_HOME "${polyml}/bin" \
       --subst-var-by PROOFGENERAL_HOME "${proofgeneral}/share/emacs/site-lisp/ProofGeneral"
+    substituteInPlace contrib/jdk/etc/settings \
+      --replace ISABELLE_JDK_HOME= '#ISABELLE_JDK_HOME='
+    substituteInPlace contrib/polyml-5.5.2-1/etc/settings \
+      --replace 'ML_HOME="$POLYML_HOME/$ML_PLATFORM"' \
+                "ML_HOME=\"${polyml}/bin\""
   '';
 
   buildPhase = ''
-    ./bin/isabelle build -s $theories
+    ISABELLE_JDK_HOME=${java} ./bin/isabelle build -s $theories
   '';
 
   installPhase = ''