coqPackages.InfSeqExt: fix build

This commit is contained in:
Vincent Laporte 2018-12-14 10:52:25 +00:00 committed by Vincent Laporte
parent 954bc20786
commit 1d5059c5e6

View File

@ -1,38 +1,11 @@
{ stdenv, fetchFromGitHub, coq, mathcomp }: { stdenv, fetchFromGitHub, coq }:
let params = let param =
{ {
"8.5" = {
version = "20180918"; version = "20180918";
rev = "243d6be45666da73a9da6c37d451327165275798"; rev = "243d6be45666da73a9da6c37d451327165275798";
sha256 = "1nh2psb4pcppy1akk24ilb4p08m35cba357i4xyymmarmbwqpxmn"; sha256 = "1nh2psb4pcppy1akk24ilb4p08m35cba357i4xyymmarmbwqpxmn";
};
"8.6" = {
version = "20180918";
rev = "243d6be45666da73a9da6c37d451327165275798";
sha256 = "1nh2psb4pcppy1akk24ilb4p08m35cba357i4xyymmarmbwqpxmn";
};
"8.7" = {
version = "20180918";
rev = "243d6be45666da73a9da6c37d451327165275798";
sha256 = "1nh2psb4pcppy1akk24ilb4p08m35cba357i4xyymmarmbwqpxmn";
};
"8.8" = {
version = "20180918";
rev = "243d6be45666da73a9da6c37d451327165275798";
sha256 = "1nh2psb4pcppy1akk24ilb4p08m35cba357i4xyymmarmbwqpxmn";
};
"8.9" = {
version = "20180918";
rev = "243d6be45666da73a9da6c37d451327165275798";
sha256 = "1nh2psb4pcppy1akk24ilb4p08m35cba357i4xyymmarmbwqpxmn";
};
}; };
param = params."${coq.coq-version}";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -44,15 +17,15 @@ stdenv.mkDerivation rec {
inherit (param) rev sha256; inherit (param) rev sha256;
}; };
buildInputs = [ buildInputs = [ coq ];
coq coq.ocaml coq.camlp5 coq.findlib mathcomp
];
enableParallelBuilding = true; enableParallelBuilding = true;
buildPhase = "make -j$NIX_BUILD_CORES"; preConfigure = "patchShebangs ./configure";
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
passthru = { passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" ]; compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.5";
}; };
} }