1 { lib, mkCoqDerivation, coq, version ? null }:
7 defaultVersion = with lib.versions; lib.switch coq.coq-version [
8 { case = range "8.14" "8.18"; out = "8.15"; }
9 { case = range "8.10" "8.13"; out = "8.10"; }
11 releaseRev = v: "coq${v}";
12 release."8.15".sha256 = "0wbp058zwa4bkdjj38aysy2g1avf9nrh8q23a3dil0q00qczi616";
13 release."8.10".sha256 = "0wbypc05d2lqfm9qaw98ynr5yc1p0ipsvyc3bh1rk9nz7zwirmjs";
16 license = licenses.mit;
17 maintainers = [ maintainers.jwiegley ];
19 }).overrideAttrs (oldAttrs: {
20 sourceRoot = "${oldAttrs.src.name}/Metalib";