From 44745d496c661620eb6b0f04ba4295ec5f328c85 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 19 Oct 2021 21:52:23 +0200 Subject: [PATCH] coqPackages.extructures: init at 0.3.0 --- .../coq-modules/extructures/default.nix | 33 +++++++++++++++++++ pkgs/top-level/coq-packages.nix | 1 + 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/coq-modules/extructures/default.nix diff --git a/pkgs/development/coq-modules/extructures/default.nix b/pkgs/development/coq-modules/extructures/default.nix new file mode 100644 index 000000000000..c34fa76f6e05 --- /dev/null +++ b/pkgs/development/coq-modules/extructures/default.nix @@ -0,0 +1,33 @@ +{ lib, mkCoqDerivation, coq, version ? null +, ssreflect +, deriving +}: +with lib; + +(mkCoqDerivation { + pname = "extructures"; + owner = "arthuraa"; + + inherit version; + defaultVersion = with versions; switch coq.coq-version [ + { case = range "8.11" "8.14"; out = "0.3.0"; } + { case = range "8.10" "8.12"; out = "0.2.2"; } + ] null; + + releaseRev = v: "v${v}"; + + release."0.3.0".sha256 = "sha256:14rm0726f1732ldds495qavg26gsn30w6dfdn36xb12g5kzavp38"; + release."0.2.2".sha256 = "sha256:1clzza73gccy6p6l95n6gs0adkqd3h4wgl4qg5l0qm4q140grvm7"; + + propagatedBuildInputs = [ ssreflect ]; + + meta = { + description = "Finite data structures with extensional reasoning"; + license = licenses.mit; + maintainers = [ maintainers.vbgl ]; + }; + +}).overrideAttrs (o: { + propagatedBuildInputs = o.propagatedBuildInputs + ++ optional (versionAtLeast o.version "0.3.0") deriving; +}) diff --git a/pkgs/top-level/coq-packages.nix b/pkgs/top-level/coq-packages.nix index 057a20ad44bd..5feb98a17047 100644 --- a/pkgs/top-level/coq-packages.nix +++ b/pkgs/top-level/coq-packages.nix @@ -40,6 +40,7 @@ let deriving = callPackage ../development/coq-modules/deriving {}; dpdgraph = callPackage ../development/coq-modules/dpdgraph {}; equations = callPackage ../development/coq-modules/equations { }; + extructures = callPackage ../development/coq-modules/extructures { }; fiat_HEAD = callPackage ../development/coq-modules/fiat/HEAD.nix {}; flocq = callPackage ../development/coq-modules/flocq {}; fourcolor = callPackage ../development/coq-modules/fourcolor {};