mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
coqPackages.VST: init at 2.6
This commit is contained in:
parent
9a913b5125
commit
d5f1dce6c8
43
pkgs/development/coq-modules/VST/default.nix
Normal file
43
pkgs/development/coq-modules/VST/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ stdenv, fetchFromGitHub, coq, compcert }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "coq${coq.coq-version}-VST";
|
||||
version = "2.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PrincetonUniversity";
|
||||
repo = "VST";
|
||||
rev = "v${version}";
|
||||
sha256 = "00bf9hl4pvmsqa08lzjs1mrxyfgfxq4k6778pnldmc8ichm90jgk";
|
||||
};
|
||||
|
||||
buildInputs = [ coq ];
|
||||
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
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.compatibleCoqVersions = stdenv.lib.flip builtins.elem [ "8.11" ];
|
||||
|
||||
meta = {
|
||||
description = "Verified Software Toolchain";
|
||||
homepage = "https://vst.cs.princeton.edu/";
|
||||
inherit (compcert.meta) platforms;
|
||||
};
|
||||
|
||||
}
|
@ -59,6 +59,7 @@ let
|
||||
tlc = callPackage ../development/coq-modules/tlc {};
|
||||
Velisarios = callPackage ../development/coq-modules/Velisarios {};
|
||||
Verdi = callPackage ../development/coq-modules/Verdi {};
|
||||
VST = callPackage ../development/coq-modules/VST {};
|
||||
|
||||
filterPackages = filterCoqPackages;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user