2020-08-28 22:05:46 +01:00
|
|
|
{ lib, mkCoqDerivation, autoconf, automake, coq, version ? null }:
|
2017-09-22 00:08:34 +01:00
|
|
|
|
2020-08-28 22:05:46 +01:00
|
|
|
with lib; mkCoqDerivation {
|
|
|
|
pname = "HoTT";
|
|
|
|
owner = "HoTT";
|
|
|
|
inherit version;
|
|
|
|
defaultVersion = if coq.coq-version == "8.6" then "20170921" else null;
|
|
|
|
release."20170921".rev = "e3557740a699167e6adb1a65855509d55a392fa1";
|
|
|
|
release."20170921".sha256 = "0zwfp8g62b50vmmbb2kmskj3v6w7qx1pbf43yw0hr7asdz2zbx5v";
|
2017-09-22 00:08:34 +01:00
|
|
|
|
2020-08-28 22:05:46 +01:00
|
|
|
extraBuildInputs = [ autoconf automake ];
|
2017-09-22 00:08:34 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--bindir=$(out)/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs etc
|
|
|
|
patchShebangs hoqc hoqchk hoqdep hoqide hoqtop
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
patchShebangs hoq-config
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Currently, all the scripts like hoqc and hoqtop assume that the *.vo files are
|
|
|
|
# either (1) in the same directory as the scripts, or (2) in /usr/share/hott.
|
|
|
|
# We fulfill (1), which means that these files are only accessible via hoqtop,
|
|
|
|
# hoqc, etc and not via coqtop, coqc, etc.
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/share/hott/* "$out/bin"
|
|
|
|
rmdir $out/share/hott
|
|
|
|
rmdir $out/share
|
|
|
|
'';
|
|
|
|
|
2020-08-28 22:05:46 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://homotopytypetheory.org/";
|
2017-09-22 00:08:34 +01:00
|
|
|
description = "Homotopy type theory";
|
|
|
|
maintainers = with maintainers; [ siddharthist ];
|
2017-12-15 19:52:16 +00:00
|
|
|
};
|
2017-09-22 00:08:34 +01:00
|
|
|
}
|