2021-01-09 10:05:03 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, version ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
with lib; mkCoqDerivation {
|
|
|
|
pname = "Velisarios";
|
|
|
|
owner = "vrahli";
|
|
|
|
inherit version;
|
|
|
|
defaultVersion = if versions.range "8.6" "8.8" coq.coq-version then "20180221" else null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
release."20180221".rev = "e1eee1f10d5d46331a560bd8565ac101229d0d6b";
|
|
|
|
release."20180221".sha256 = "0l9885nxy0n955fj1gnijlxl55lyxiv9yjfmz8hmfrn9hl8vv1m2";
|
|
|
|
mlPlugin = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|