diff options
Diffstat (limited to 'nixpkgs/pkgs/development/coq-modules/CoLoR/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/coq-modules/CoLoR/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/coq-modules/CoLoR/default.nix b/nixpkgs/pkgs/development/coq-modules/CoLoR/default.nix new file mode 100644 index 000000000000..82c6e58a7b03 --- /dev/null +++ b/nixpkgs/pkgs/development/coq-modules/CoLoR/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, coq, bignums }: + +stdenv.mkDerivation { + name = "coq${coq.coq-version}-CoLoR-1.4.0"; + + src = fetchurl { + url = https://gforge.inria.fr/frs/download.php/file/37205/color.1.4.0.tar.gz; + sha256 = "1jsp9adsh7w59y41ihbwchryjhjpajgs9bhf8rnb4b3hzccqxgag"; + }; + + buildInputs = [ coq bignums ]; + enableParallelBuilding = false; + + installPhase = '' + make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install + ''; + + meta = with stdenv.lib; { + homepage = http://color.inria.fr/; + description = "CoLoR is a library of formal mathematical definitions and proofs of theorems on rewriting theory and termination whose correctness has been mechanically checked by the Coq proof assistant."; + maintainers = with maintainers; [ jwiegley ]; + platforms = coq.meta.platforms; + }; + + passthru = { + compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" ]; + }; +} |