nixpkgs/pkgs/development/coq-modules/Cheerios/default.nix

33 lines
746 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, coq, StructTact }:
2018-12-14 10:52:20 +00:00
let param =
{
version = "20200201";
rev = "9c7f66e57b91f706d70afa8ed99d64ed98ab367d";
sha256 = "1h55s6lk47bk0lv5ralh81z55h799jbl9mhizmqwqzy57y8wqgs1";
};
in
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
name = "coq${coq.coq-version}-Cheerios-${param.version}";
src = fetchFromGitHub {
owner = "uwplse";
repo = "cheerios";
inherit (param) rev sha256;
};
2018-12-14 10:52:20 +00:00
buildInputs = [ coq ];
propagatedBuildInputs = [ StructTact ];
enableParallelBuilding = true;
2018-12-14 10:52:20 +00:00
preConfigure = "patchShebangs ./configure";
2019-11-05 01:10:31 +00:00
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" ];
};
}