nixpkgs/pkgs/development/coq-modules/metalib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
676 B
Nix
Raw Normal View History

2020-08-28 21:05:46 +00:00
{ lib, mkCoqDerivation, coq, version ? null }:
2017-11-12 17:34:06 +00:00
(mkCoqDerivation {
2020-08-28 21:05:46 +00:00
pname = "metalib";
owner = "plclub";
inherit version;
defaultVersion = with lib.versions; lib.switch coq.coq-version [
2023-09-01 08:11:49 +00:00
{ case = range "8.14" "8.18"; out = "8.15"; }
{ case = range "8.10" "8.13"; out = "8.10"; }
] null;
releaseRev = v: "coq${v}";
release."8.15".sha256 = "0wbp058zwa4bkdjj38aysy2g1avf9nrh8q23a3dil0q00qczi616";
release."8.10".sha256 = "0wbypc05d2lqfm9qaw98ynr5yc1p0ipsvyc3bh1rk9nz7zwirmjs";
2017-11-12 17:34:06 +00:00
meta = with lib; {
2017-11-12 17:34:06 +00:00
license = licenses.mit;
maintainers = [ maintainers.jwiegley ];
};
}).overrideAttrs (oldAttrs: {
sourceRoot = "${oldAttrs.src.name}/Metalib";
})