2020-08-28 23:05:46 +02:00
|
|
|
{ lib, mkCoqDerivation, coq, compcert, version ? null }:
|
2020-09-28 23:04:32 +02:00
|
|
|
|
2020-08-28 23:05:46 +02:00
|
|
|
with lib; mkCoqDerivation {
|
2020-09-28 23:04:32 +02:00
|
|
|
pname = "coq${coq.coq-version}-VST";
|
2020-08-28 23:05:46 +02:00
|
|
|
namePrefix = [];
|
|
|
|
displayVersion = { coq = false; };
|
|
|
|
owner = "PrincetonUniversity";
|
|
|
|
repo = "VST";
|
|
|
|
inherit version;
|
2021-04-30 08:49:33 +02:00
|
|
|
defaultVersion = with versions; switch coq.coq-version [
|
|
|
|
{ case = range "8.12" "8.13"; out = "2.7.1"; }
|
|
|
|
] null;
|
|
|
|
release."2.7.1".sha256 = "1674j7bkvihiv19vizm99dp6gj3lryb00zx6a87jz214f3ydcvnj";
|
2020-08-28 23:05:46 +02:00
|
|
|
releaseRev = v: "v${v}";
|
2020-09-28 23:04:32 +02:00
|
|
|
propagatedBuildInputs = [ compcert ];
|
|
|
|
|
|
|
|
preConfigure = "patchShebangs util";
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"BITSIZE=64"
|
|
|
|
"COMPCERT=inst_dir"
|
|
|
|
"COMPCERT_INST_DIR=${compcert.lib}/lib/coq/${coq.coq-version}/user-contrib/compcert"
|
|
|
|
"INSTALLDIR=$(out)/lib/coq/${coq.coq-version}/user-contrib/VST"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for d in msl veric floyd sepcomp progs64
|
|
|
|
do
|
|
|
|
cp -r $d $out/lib/coq/${coq.coq-version}/user-contrib/VST/
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Verified Software Toolchain";
|
|
|
|
homepage = "https://vst.cs.princeton.edu/";
|
|
|
|
inherit (compcert.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|