2010-08-02 18:01:55 +02:00
|
|
|
{ stdenv, fetchurl, perl, nettools, polyml, proofgeneral }:
|
2009-12-11 18:00:52 +01:00
|
|
|
# nettools needed for hostname
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "Isabelle";
|
2011-04-20 14:24:34 +02:00
|
|
|
version = "2011";
|
2009-12-11 18:00:52 +01:00
|
|
|
name = "${pname}${version}";
|
|
|
|
theories = ["HOL" "FOL" "ZF"];
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name theories;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-11-26 19:45:15 +01:00
|
|
|
url = http://isabelle.in.tum.de/website-Isabelle2011/dist/Isabelle2011.tar.gz;
|
2011-04-20 14:24:34 +02:00
|
|
|
sha256 = "ea85eb2a859891be387f020b2e45f8c9a0bd1d8bbc3902f28a429e9c61cb0b6a";
|
2009-12-11 18:00:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl polyml nettools ];
|
|
|
|
|
|
|
|
sourceRoot = name;
|
|
|
|
|
|
|
|
patches = [ ./settings.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
ENV=$(type -p env)
|
|
|
|
patchShebangs "."
|
|
|
|
substituteInPlace lib/Tools/env \
|
|
|
|
--replace /usr/bin/env $ENV
|
|
|
|
substituteInPlace lib/Tools/install \
|
|
|
|
--replace /usr/bin/env $ENV
|
|
|
|
substituteInPlace src/Pure/IsaMakefile \
|
|
|
|
--replace /bin/bash /bin/sh
|
|
|
|
substituteInPlace etc/settings \
|
|
|
|
--subst-var-by ML_HOME "${polyml}/bin" \
|
|
|
|
--subst-var-by PROOFGENERAL_HOME "${proofgeneral}/share/emacs/site-lisp/ProofGeneral"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
./build $theories
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2009-12-11 18:00:52 +01:00
|
|
|
mv $TMP/$name $out
|
|
|
|
cd $out/$name
|
|
|
|
bin/isabelle install -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A generic proof assistant";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Isabelle is a generic proof assistant. It allows mathematical formulas
|
|
|
|
to be expressed in a formal language and provides tools for proving those
|
|
|
|
formulas in a logical calculus.
|
|
|
|
'';
|
|
|
|
homepage = http://isabelle.in.tum.de/;
|
|
|
|
license = "LGPL";
|
|
|
|
};
|
|
|
|
}
|