2025-02-17 21:00:28 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
mkCoqDerivation,
|
|
|
|
coq,
|
|
|
|
mathcomp,
|
2025-02-23 16:19:04 +01:00
|
|
|
mathcomp-algebra-tactics,
|
2025-02-17 21:00:28 +01:00
|
|
|
mathcomp-word,
|
|
|
|
version ? null,
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkCoqDerivation {
|
|
|
|
pname = "jasmin";
|
|
|
|
owner = "jasmin-lang";
|
|
|
|
|
|
|
|
inherit version;
|
|
|
|
defaultVersion =
|
2025-06-19 12:29:43 +02:00
|
|
|
let
|
2025-06-29 16:35:20 +02:00
|
|
|
case = coq: mc: out: {
|
2025-06-30 11:57:40 +02:00
|
|
|
cases = [
|
2025-06-29 16:35:20 +02:00
|
|
|
coq
|
|
|
|
mc
|
|
|
|
];
|
|
|
|
inherit out;
|
|
|
|
};
|
2025-06-19 12:29:43 +02:00
|
|
|
in
|
2025-06-29 16:35:20 +02:00
|
|
|
with lib.versions;
|
|
|
|
lib.switch
|
|
|
|
[ coq.coq-version mathcomp.version ]
|
|
|
|
[
|
2025-07-09 13:24:20 +02:00
|
|
|
(case (range "8.19" "9.1") (range "2.2" "2.4") "2025.02.0")
|
2025-06-29 16:35:20 +02:00
|
|
|
(case (isEq "8.18") (isEq "2.2") "2024.07.2")
|
|
|
|
]
|
|
|
|
null;
|
2025-02-17 21:00:28 +01:00
|
|
|
releaseRev = v: "v${v}";
|
|
|
|
|
2025-03-17 13:08:00 +01:00
|
|
|
release."2025.02.0".sha256 = "sha256-Jlf0+VPuYWXdWyKHKHSp7h/HuCCp4VkcrgDAmh7pi5s=";
|
2025-03-17 11:31:23 +01:00
|
|
|
release."2024.07.3".sha256 = "sha256-n/X8d7ILuZ07l24Ij8TxbQzAG7E8kldWFcUI65W4r+c=";
|
2025-03-17 11:29:32 +01:00
|
|
|
release."2024.07.2".sha256 = "sha256-aF8SYY5jRxQ6iEr7t6mRN3BEmIDhJ53PGhuZiJGB+i8=";
|
2025-02-17 21:00:28 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2025-02-23 16:19:04 +01:00
|
|
|
mathcomp-algebra-tactics
|
2025-02-17 21:00:28 +01:00
|
|
|
mathcomp-word
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"-C"
|
|
|
|
"proofs"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jasmin language & verified compiler";
|
|
|
|
homepage = "https://github.com/jasmin-lang/jasmin/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
proux01
|
|
|
|
vbgl
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|