diff --git a/pkgs/development/coq-modules/coq-haskell/default.nix b/pkgs/development/coq-modules/coq-haskell/default.nix new file mode 100644 index 000000000000..bb5fe95a5315 --- /dev/null +++ b/pkgs/development/coq-modules/coq-haskell/default.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchgit, coq }: + +let param = + { + "8.5" = { + version = "20171214"; + rev = "d319043533585f60f0c89919a8370f85a9cf572b"; + sha256 = "154a8sx5igw86wby0ybk3rv5y21cji8489amgxhgqxfys9zmx2di"; + }; + + "8.6" = { + version = "20171214"; + rev = "d319043533585f60f0c89919a8370f85a9cf572b"; + sha256 = "154a8sx5igw86wby0ybk3rv5y21cji8489amgxhgqxfys9zmx2di"; + }; + + "8.7" = { + version = "20171214"; + rev = "d319043533585f60f0c89919a8370f85a9cf572b"; + sha256 = "154a8sx5igw86wby0ybk3rv5y21cji8489amgxhgqxfys9zmx2di"; + }; + + }."${coq.coq-version}" +; in + +stdenv.mkDerivation rec { + + name = "coq${coq.coq-version}-coq-haskell-${param.version}"; + + src = fetchgit { + url = git://github.com/jwiegley/coq-haskell.git; + inherit (param) rev sha256; + }; + + buildInputs = [ coq.ocaml coq.camlp5 coq.findlib ]; + propagatedBuildInputs = [ coq ]; + + enableParallelBuilding = false; + + installPhase = '' + make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install + ''; + + meta = with stdenv.lib; { + homepage = git://github.com/jwiegley/coq-haskell.git; + description = "A library for formalizing Haskell types and functions in Coq"; + maintainers = with maintainers; [ jwiegley ]; + platforms = coq.meta.platforms; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8e7a56bd75da..0f6c5f4b10e7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18867,6 +18867,7 @@ with pkgs; math-classes = callPackage ../development/coq-modules/math-classes { }; fiat_HEAD = callPackage ../development/coq-modules/fiat/HEAD.nix {}; equations = callPackage ../development/coq-modules/equations { }; + coq-haskell = callPackage ../development/coq-modules/coq-haskell { }; }; coqPackages_8_5 = mkCoqPackages coqPackages_8_5 coq_8_5;