git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #154272 from jvanbruegge/isabelle-build-hol

isabelle: Prebuild HOL session

commitb27b115b411d0150e7cfde09f2ff18498aa9b24b authorGabriel Ebner <gebner@gebner.org> dateWed 26 Jan 2022, 16:37 (5 years ago) parenta14bb13d653b33
2 files changed+22−2
maintainers/maintainer-list.nix+10 pkgs/applications/science/logic/isabelle/default.nix+12−2
maintainers/maintainer-list.nix+10
@@ -6068,6 +6068,16 @@
60686068 githubId = 2396926;
60696069 name = "Justin Woo";
60706070 };
6071+ jvanbruegge = {
6072+ email = "supermanitu@gmail.com";
6073+ github = "jvanbruegge";
6074+ githubId = 1529052;
6075+ name = "Jan van Brügge";
6076+ keys = [{
6077+ longkeyid = "rsa4096/0x366572BE7D6C78A2";
6078+ fingerprint = "3513 5CE5 77AD 711F 3825 9A99 3665 72BE 7D6C 78A2";
6079+ }];
6080+ };
60716081 jwatt = {
60726082 email = "jwatt@broken.watch";
60736083 github = "jjwatt";
pkgs/applications/science/logic/isabelle/default.nix+12−2
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl, nettools, java, polyml, z3, veriT, vampire, eprover-ho, rlwrap, makeDesktopItem }:
1+{ lib, stdenv, fetchurl, coreutils, nettools, java, polyml, z3, veriT, vampire, eprover-ho, rlwrap, makeDesktopItem }:
22# nettools needed for hostname
33
44stdenv.mkDerivation rec {
@@ -73,6 +73,11 @@ stdenv.mkDerivation rec {
7373 for comp in contrib/jdk* contrib/polyml-* contrib/z3-* contrib/verit-* contrib/vampire-* contrib/e-*; do
7474 rm -rf $comp/x86*
7575 done
76+
77+ substituteInPlace lib/Tools/env \
78+ --replace /usr/bin/env ${coreutils}/bin/env
79+
80+ rm -r heaps
7681 '' + (if ! stdenv.isLinux then "" else ''
7782 arch=${if stdenv.hostPlatform.system == "x86_64-linux" then "x86_64-linux" else "x86-linux"}
7883 for f in contrib/*/$arch/{bash_process,epclextract,nunchaku,SPASS,zipperposition}; do
@@ -83,6 +88,11 @@ stdenv.mkDerivation rec {
8388 done
8489 '');
8590
91+ buildPhase = ''
92+ export HOME=$TMP # The build fails if home is not set
93+ bin/isabelle build -v -o system_heaps -b HOL
94+ '';
95+
8696 installPhase = ''
8797 mkdir -p $out/bin
8898 mv $TMP/$dirname $out
@@ -117,7 +127,7 @@ stdenv.mkDerivation rec {
117127 '';
118128 homepage = "https://isabelle.in.tum.de/";
119129 license = licenses.bsd3;
120− maintainers = [ maintainers.jwiegley ];
130+ maintainers = [ maintainers.jwiegley maintainers.jvanbruegge ];
121131 platforms = platforms.linux;
122132 };
123133}