forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coqPackages.stalmarck: init at 8.20.0
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters