diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/coq-modules/fiat/HEAD.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/coq-modules/fiat/HEAD.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/coq-modules/fiat/HEAD.nix b/infra/libkookie/nixpkgs/pkgs/development/coq-modules/fiat/HEAD.nix new file mode 100644 index 000000000000..fd3ade0c64b5 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/coq-modules/fiat/HEAD.nix @@ -0,0 +1,39 @@ +{stdenv, fetchgit, coq, python27}: + +stdenv.mkDerivation rec { + + name = "coq-fiat-${coq.coq-version}-unstable-${version}"; + version = "2016-10-24"; + + src = fetchgit { + url = "https://github.com/mit-plv/fiat.git"; + rev = "7feb6c64be9ebcc05924ec58fe1463e73ec8206a"; + sha256 = "0griqc675yylf9rvadlfsabz41qy5f5idya30p5rv6ysiakxya64"; + }; + + buildInputs = [ coq python27 ] ++ (with coq.ocamlPackages; [ ocaml camlp5 ]); + + prePatch = "patchShebangs etc/coq-scripts"; + + doCheck = false; + + enableParallelBuilding = false; + buildPhase = "make -j$NIX_BUILD_CORES"; + + installPhase = '' + COQLIB=$out/lib/coq/${coq.coq-version}/ + mkdir -p $COQLIB/user-contrib/Fiat + cp -pR src/* $COQLIB/user-contrib/Fiat + ''; + + meta = with stdenv.lib; { + homepage = "http://plv.csail.mit.edu/fiat/"; + description = "A library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications"; + maintainers = with maintainers; [ jwiegley ]; + platforms = coq.meta.platforms; + }; + + passthru = { + compatibleCoqVersions = v: v == "8.5"; + }; +} |