1 { lib, mkCoqDerivation, coq, mathcomp, version ? null }:
6 releaseRev = v: "v${v}";
8 release."1.2.1".sha256 = "sha256-giCRK8wzpVVzXAkFAieQDWqSsP7upSJSUUHkwG4QqO4=";
9 release."1.2.0".sha256 = "sha256-gSqQ7D2HLwM4oYopTWkMFYfYXxsH/7VxI3AyrLwNf3o=";
10 release."1.1.3".sha256 = "sha256-kaselYm8K0JBsTlcI6K24m8qpv8CZ9+VNDJrOtFaExg=";
11 release."1.1.2".sha256 = "sha256-SEnMilLNxh6a3oiDNGLaBr8quQ/nO2T9Fwdf/1il2Yk=";
14 defaultVersion = with lib.versions; lib.switch [ coq.coq-version mathcomp.version ] [
15 { cases = [ (range "8.16" "8.19") (isGe "2.0.0") ]; out = "1.2.1"; }
16 { cases = [ (range "8.16" "8.18") (range "2.0.0" "2.1.0") ]; out = "1.2.0"; }
17 { cases = [ (range "8.10" "8.19") (isLt "2.0.0") ]; out = "1.1.3"; }
21 propagatedBuildInputs = [ mathcomp.ssreflect ];
24 description = "Regular Language Representations in Coq";
25 maintainers = with maintainers; [ siraben ];
26 license = licenses.cecill-b;
27 platforms = platforms.unix;