-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that it compiles on Coq >= 9 thanks to the replacement of paramcoq by elpi derive.param2.
- Loading branch information
Showing
5 changed files
with
355 additions
and
1 deletion.
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
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
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
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
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,124 @@ | ||
{ | ||
coq, | ||
mkCoqDerivation, | ||
mathcomp, | ||
bignums, | ||
paramcoq, | ||
multinomials, | ||
mathcomp-real-closed, | ||
lib, | ||
version ? null, | ||
}: | ||
|
||
let | ||
derivation = mkCoqDerivation { | ||
|
||
pname = "CoqEAL"; | ||
|
||
inherit version; | ||
defaultVersion = | ||
with lib.versions; | ||
lib.switch | ||
[ coq.version mathcomp.version ] | ||
[ | ||
{ | ||
cases = [ | ||
(range "8.16" "8.20") | ||
(isGe "2.1.0") | ||
]; | ||
out = "2.0.3"; | ||
} | ||
{ | ||
cases = [ | ||
(range "8.16" "8.20") | ||
(isGe "2.0.0") | ||
]; | ||
out = "2.0.1"; | ||
} | ||
{ | ||
cases = [ | ||
(range "8.16" "8.17") | ||
(isGe "2.0.0") | ||
]; | ||
out = "2.0.0"; | ||
} | ||
{ | ||
cases = [ | ||
(range "8.15" "8.18") | ||
(range "1.15.0" "1.18.0") | ||
]; | ||
out = "1.1.3"; | ||
} | ||
{ | ||
cases = [ | ||
(range "8.13" "8.17") | ||
(range "1.13.0" "1.18.0") | ||
]; | ||
out = "1.1.1"; | ||
} | ||
{ | ||
cases = [ | ||
(range "8.10" "8.15") | ||
(range "1.12.0" "1.18.0") | ||
]; | ||
out = "1.1.0"; | ||
} | ||
{ | ||
cases = [ | ||
(isGe "8.10") | ||
(range "1.11.0" "1.12.0") | ||
]; | ||
out = "1.0.5"; | ||
} | ||
{ | ||
cases = [ | ||
(isGe "8.7") | ||
"1.11.0" | ||
]; | ||
out = "1.0.4"; | ||
} | ||
{ | ||
cases = [ | ||
(isGe "8.7") | ||
"1.10.0" | ||
]; | ||
out = "1.0.3"; | ||
} | ||
] | ||
null; | ||
|
||
release."2.0.3".sha256 = "sha256-5lDq7IWlEW0EkNzYPu+dA6KOvRgy53W/alikpDr/Kd0="; | ||
release."2.0.1".sha256 = "sha256-d/IQ4IdS2tpyPewcGobj2S6m2HU+iXQmlvR+ITNIcjI="; | ||
release."2.0.0".sha256 = "sha256-SG/KVnRJz2P+ZxkWVp1dDOnc/JVgigoexKfRUh1Y0GM"; | ||
release."1.1.3".sha256 = "sha256-xhqWpg86xbU1GbDtXXInNCTArjjPnWZctWiiasq1ScU="; | ||
release."1.1.1".sha256 = "sha256-ExAdC3WuArNxS+Sa1r4x5aT7ylbCvP/BZXfkdQNAvZ8="; | ||
release."1.1.0".sha256 = "1vyhfna5frkkq2fl1fkg2mwzpg09k3sbzxxpyp14fjay81xajrxr"; | ||
release."1.0.6".sha256 = "0lqkyfj4qbq8wr3yk8qgn7mclw582n3fjl9l19yp8cnchspzywx0"; | ||
release."1.0.5".sha256 = "0cmvky8glb5z2dy3q62aln6qbav4lrf2q1589f6h1gn5bgjrbzkm"; | ||
release."1.0.4".sha256 = "1g5m26lr2lwxh6ld2gykailhay4d0ayql4bfh0aiwqpmmczmxipk"; | ||
release."1.0.3".sha256 = "0hc63ny7phzbihy8l7wxjvn3haxx8jfnhi91iw8hkq8n29i23v24"; | ||
|
||
propagatedBuildInputs = [ | ||
mathcomp.algebra | ||
bignums | ||
multinomials | ||
]; | ||
|
||
meta = { | ||
description = "CoqEAL - The Coq Effective Algebra Library"; | ||
license = lib.licenses.mit; | ||
}; | ||
}; | ||
patched-derivation1 = derivation.overrideAttrs | ||
(o: { | ||
propagatedBuildInputs = | ||
o.propagatedBuildInputs | ||
++ lib.optional (lib.versions.isGe "1.1" o.version || o.version == "dev") mathcomp-real-closed; | ||
}); | ||
patched-derivation = patched-derivation1.overrideAttrs | ||
(o: { | ||
propagatedBuildInputs = | ||
o.propagatedBuildInputs | ||
++ lib.optional (lib.versions.isLe "2.0.3" o.version && o.version != "dev") paramcoq; | ||
}); | ||
in patched-derivation |