mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
coqPackages.coqhammer: init at 1.1
CoqHammer is a general-purpose automated reasoning hammer tool for Coq. Homepage: http://cl-informatik.uibk.ac.at/cek/coqhammer/
This commit is contained in:
parent
dcf40f7c24
commit
823107038b
55
pkgs/development/coq-modules/coqhammer/default.nix
Normal file
55
pkgs/development/coq-modules/coqhammer/default.nix
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, coq }:
|
||||||
|
|
||||||
|
let
|
||||||
|
params = {
|
||||||
|
"8.8" = {
|
||||||
|
sha256 = "0ms086wp4jmrzyglb8wymchzyflflk01nsfsk4r6qv8rrx81nx9h";
|
||||||
|
};
|
||||||
|
"8.9" = {
|
||||||
|
sha256 = "0hmqwsry8ldg4g4hhwg4b84dgzibpdrg1wwsajhlyqfx3fb3n3b5";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
param = params."${coq.coq-version}";
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "1.1";
|
||||||
|
name = "coq${coq.coq-version}-coqhammer-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lukaszcz";
|
||||||
|
repo = "coqhammer";
|
||||||
|
rev = "v${version}-coq${coq.coq-version}";
|
||||||
|
inherit (param) sha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile.coq.local --replace \
|
||||||
|
'$(if $(COQBIN),$(COQBIN),`coqc -where | xargs dirname | xargs dirname`/bin/)' \
|
||||||
|
'$(out)/bin/'
|
||||||
|
substituteInPlace Makefile.coq.local --replace 'g++' 'c++' --replace 'gcc' 'cc'
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ coq ] ++ (with coq.ocamlPackages; [
|
||||||
|
ocaml findlib camlp5
|
||||||
|
]);
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "http://cl-informatik.uibk.ac.at/cek/coqhammer/";
|
||||||
|
description = "Automation for Dependent Type Theory";
|
||||||
|
license = stdenv.lib.licenses.lgpl21;
|
||||||
|
inherit (coq.meta) platforms;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||||
|
};
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -19,6 +19,7 @@ let
|
|||||||
coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {};
|
coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {};
|
||||||
coq-extensible-records = callPackage ../development/coq-modules/coq-extensible-records {};
|
coq-extensible-records = callPackage ../development/coq-modules/coq-extensible-records {};
|
||||||
coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
|
coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
|
||||||
|
coqhammer = callPackage ../development/coq-modules/coqhammer {};
|
||||||
coqprime = callPackage ../development/coq-modules/coqprime {};
|
coqprime = callPackage ../development/coq-modules/coqprime {};
|
||||||
coquelicot = callPackage ../development/coq-modules/coquelicot {};
|
coquelicot = callPackage ../development/coq-modules/coquelicot {};
|
||||||
corn = callPackage ../development/coq-modules/corn {};
|
corn = callPackage ../development/coq-modules/corn {};
|
||||||
|
Loading…
Reference in New Issue
Block a user