2023-10-26 11:13:46 +01:00
|
|
|
{ lib, mkCoqDerivation, coq, mathcomp, version ? null }:
|
2021-06-07 18:22:36 +01:00
|
|
|
|
|
|
|
mkCoqDerivation {
|
|
|
|
pname = "reglang";
|
|
|
|
|
|
|
|
releaseRev = v: "v${v}";
|
|
|
|
|
2023-10-26 11:13:46 +01:00
|
|
|
release."1.2.0".sha256 = "sha256-gSqQ7D2HLwM4oYopTWkMFYfYXxsH/7VxI3AyrLwNf3o=";
|
2023-06-08 20:37:02 +01:00
|
|
|
release."1.1.3".sha256 = "sha256-kaselYm8K0JBsTlcI6K24m8qpv8CZ9+VNDJrOtFaExg=";
|
2021-06-07 18:22:36 +01:00
|
|
|
release."1.1.2".sha256 = "sha256-SEnMilLNxh6a3oiDNGLaBr8quQ/nO2T9Fwdf/1il2Yk=";
|
|
|
|
|
|
|
|
inherit version;
|
2023-10-26 11:13:46 +01:00
|
|
|
defaultVersion = with lib.versions; lib.switch [ coq.coq-version mathcomp.version ] [
|
|
|
|
{ cases = [ (range "8.16" "8.18") (isGe "2.0.0") ]; out = "1.2.0"; }
|
|
|
|
{ cases = [ (range "8.10" "8.18") (isLt "2.0.0") ]; out = "1.1.3"; }
|
2021-06-07 18:22:36 +01:00
|
|
|
] null;
|
|
|
|
|
|
|
|
|
2023-10-26 11:13:46 +01:00
|
|
|
propagatedBuildInputs = [ mathcomp.ssreflect ];
|
2021-06-07 18:22:36 +01:00
|
|
|
|
2023-01-21 22:19:48 +00:00
|
|
|
meta = with lib; {
|
2021-06-07 18:22:36 +01:00
|
|
|
description = "Regular Language Representations in Coq";
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
license = licenses.cecill-b;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|