mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
coqPackages.json: 0.1.3 -> 0.2.0
This commit is contained in:
parent
320c35c793
commit
0231e3b877
@ -1,6 +1,6 @@
|
||||
{ lib, mkCoqDerivation, coq, parsec, MenhirLib, version ? null }:
|
||||
|
||||
mkCoqDerivation {
|
||||
(mkCoqDerivation {
|
||||
pname = "json";
|
||||
owner = "liyishuai";
|
||||
repo = "coq-json";
|
||||
@ -8,19 +8,23 @@ mkCoqDerivation {
|
||||
|
||||
defaultVersion = let inherit (lib.versions) range; in
|
||||
lib.switch coq.coq-version [
|
||||
{ case = range "8.14" "8.20"; out = "0.2.0"; }
|
||||
{ case = range "8.14" "8.20"; out = "0.1.3"; }
|
||||
] null;
|
||||
release = {
|
||||
"0.2.0".sha256 = "sha256-qDRTgWLUvu4x3/d3BDcqo2I4W5ZmLyRiwuY/Tm/FuKA=";
|
||||
"0.1.3".sha256 = "sha256-lElAzW4IuX+BB6ngDjlyKn0MytLRfbhQanB+Lct/WR0=";
|
||||
};
|
||||
releaseRev = v: "v${v}";
|
||||
|
||||
propagatedBuildInputs = [ parsec MenhirLib coq.ocamlPackages.menhir ];
|
||||
|
||||
buildFlags = [ "MENHIRFLAGS=--coq" "MENHIRFLAGS+=--coq-no-version-check" ];
|
||||
useDuneifVersion = v: lib.versions.isGe "0.2.0" v || v == "dev";
|
||||
|
||||
meta = {
|
||||
description = "From JSON to Coq, and vice versa.";
|
||||
license = lib.licenses.bsd3;
|
||||
};
|
||||
}
|
||||
}).overrideAttrs (o: lib.optionalAttrs (o.version != null
|
||||
&& lib.versions.isLt "0.2.0" o.version)
|
||||
{ buildFlags = [ "MENHIRFLAGS=--coq" "MENHIRFLAGS+=--coq-no-version-check" ]; })
|
||||
|
Loading…
Reference in New Issue
Block a user