coqPackages.Velisarios: New expression

This commit is contained in:
John Wiegley 2018-10-23 17:08:56 -07:00
parent 4964871adb
commit 3c4c4ff051
No known key found for this signature in database
GPG Key ID: C144D8F4F19FE630
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ stdenv, fetchFromGitHub, coq }:
let params =
{
"8.6" = {
version = "20180221";
rev = "e1eee1f10d5d46331a560bd8565ac101229d0d6b";
sha256 = "0l9885nxy0n955fj1gnijlxl55lyxiv9yjfmz8hmfrn9hl8vv1m2";
};
"8.7" = {
version = "20180221";
rev = "e1eee1f10d5d46331a560bd8565ac101229d0d6b";
sha256 = "0l9885nxy0n955fj1gnijlxl55lyxiv9yjfmz8hmfrn9hl8vv1m2";
};
"8.8" = {
version = "20180221";
rev = "e1eee1f10d5d46331a560bd8565ac101229d0d6b";
sha256 = "0l9885nxy0n955fj1gnijlxl55lyxiv9yjfmz8hmfrn9hl8vv1m2";
};
};
param = params."${coq.coq-version}";
in
stdenv.mkDerivation rec {
name = "coq${coq.coq-version}-Velisarios-${param.version}";
src = fetchFromGitHub {
owner = "vrahli";
repo = "Velisarios";
inherit (param) rev sha256;
};
buildInputs = [
coq coq.ocaml coq.camlp5 coq.findlib
];
enableParallelBuilding = true;
buildPhase = "make -j$NIX_BUILD_CORES";
preBuild = "./create-makefile.sh";
installPhase = ''
mkdir -p $out/lib/coq/${coq.coq-version}/Velisarios
cp -pR model/*.vo $out/lib/coq/${coq.coq-version}/Velisarios
'';
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" ];
};
}

View File

@ -40,6 +40,7 @@ let
ssreflect = callPackage ../development/coq-modules/ssreflect { }; ssreflect = callPackage ../development/coq-modules/ssreflect { };
stdpp = callPackage ../development/coq-modules/stdpp { }; stdpp = callPackage ../development/coq-modules/stdpp { };
tlc = callPackage ../development/coq-modules/tlc {}; tlc = callPackage ../development/coq-modules/tlc {};
Velisarios = callPackage ../development/coq-modules/Velisarios {};
}; };
filterCoqPackages = coq: filterCoqPackages = coq: