Skip to content

Commit

Permalink
coqPackages.stalmarck: init at 8.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
proux01 authored and vbgl committed Aug 7, 2024
1 parent 1f3856b commit a69fe54
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/development/coq-modules/stalmarck/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib, mkCoqDerivation, coq, version ? null }:

let
repo = "stalmarck";
defaultVersion = with lib.versions; lib.switch coq.coq-version [
{ case = isEq "8.20"; out = "8.20.0"; }
] null;
release = {
"8.20.0".sha256 = "sha256-jITxQT1jLyZvWCGPnmK8i3IrwsZwMPOV0aBe9r22TIQ=";
};
releaseRev = v: "v${v}";

packages = [ "stalmarck" "stalmarck-tactic" ];

stalmarck_ = package: let
pname = package;
istac = package == "stalmarck-tactic";
propagatedBuildInputs =
lib.optional istac (stalmarck_ "stalmarck");
description =
if istac then
"Coq tactic and verified tool for proving tautologies using Stålmarck's algorithm"
else
"A two-level approach to prove tautologies using Stålmarck's algorithm in Coq.";
in mkCoqDerivation {
inherit version pname defaultVersion release releaseRev repo
propagatedBuildInputs;

mlPlugin = istac;
useDune = istac;

meta = { inherit description; license = lib.licenses.lgpl21Plus; };

passthru = lib.genAttrs packages stalmarck_;
};
in
stalmarck_ "stalmarck-tactic"
2 changes: 2 additions & 0 deletions pkgs/top-level/coq-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ let
smpl = callPackage ../development/coq-modules/smpl { };
smtcoq = callPackage ../development/coq-modules/smtcoq { };
ssprove = callPackage ../development/coq-modules/ssprove {};
stalmarck-tactic = callPackage ../development/coq-modules/stalmarck {};
stalmarck = self.stalmarck-tactic.stalmarck;
stdpp = callPackage ../development/coq-modules/stdpp { };
StructTact = callPackage ../development/coq-modules/StructTact {};
tlc = callPackage ../development/coq-modules/tlc {};
Expand Down

0 comments on commit a69fe54

Please sign in to comment.