mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
47 lines
983 B
Nix
47 lines
983 B
Nix
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
let params =
|
|
let v_8_8_0 = {
|
|
rev = "V8.8.0";
|
|
sha256 = "1ymxyrvjygscxkfj3qkq66skl3vdjhb670rzvsvgmwrjkrakjnfg";
|
|
};
|
|
in
|
|
{
|
|
"8.6" = {
|
|
rev = "v8.6.0";
|
|
sha256 = "0553pcsy21cyhmns6k9qggzb67az8kl31d0lwlnz08bsqswigzrj";
|
|
};
|
|
"8.7" = {
|
|
rev = "V8.7.0";
|
|
sha256 = "11c4sdmpd3l6jjl4v6k213z9fhrmmm1xnly3zmzam1wrrdif4ghl";
|
|
};
|
|
"8.8" = v_8_8_0;
|
|
"8.9" = v_8_8_0;
|
|
};
|
|
param = params."${coq.coq-version}"
|
|
; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "coq${coq.coq-version}-bignums";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coq";
|
|
repo = "bignums";
|
|
inherit (param) rev sha256;
|
|
};
|
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
|
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
|
|
|
meta = with stdenv.lib; {
|
|
license = licenses.lgpl2;
|
|
platforms = coq.meta.platforms;
|
|
};
|
|
|
|
passthru = {
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
|
};
|
|
}
|