1 { lib, mkCoqDerivation, coq, version ? null }:
7 defaultVersion = with lib.versions; lib.switch coq.coq-version [
8 { case = range "8.13" "8.19"; out = "4.2.0"; }
9 { case = range "8.12" "8.17"; out = "4.1.2"; }
10 { case = range "8.9" "8.13"; out = "4.1.1"; }
11 { case = range "8.6" "8.13"; out = "4.0.2"; }
12 { case = isEq "8.5"; out = "1.2.8"; }
14 release."4.2.0".sha256 = "sha256-YHYtiz9hium96n3owL/C99AjJAFTlTCmmb2+ttevgMY=";
15 release."4.1.2".sha256 = "sha256:1l8mwakqp4wnppsldl8wp2j24h1jvadnvrsgf35xnvdyygypjp2v";
16 release."4.1.1".sha256 = "1qap8cyv649lr1s11r7h5jzdjd4hsna8kph15qy5fw24h5nx6byy";
17 release."4.0.2".sha256 = "1q96bsxclqx84xn5vkid501jkwlc1p6fhb8szrlrp82zglj58b0b";
18 release."1.2.8".sha256 = "05fskx5x1qgaf9qv626m38y5izichzzqc7g2rglzrkygbskrrwsb";
19 releaseRev = v: "v${v}";
24 COQLIB=$out/lib/coq/${coq.coq-version}/
25 mkdir -p $COQLIB/user-contrib/Paco
26 cp -pR *.vo $COQLIB/user-contrib/Paco
30 homepage = "https://plv.mpi-sws.org/paco/";
31 description = "A Coq library implementing parameterized coinduction";
32 maintainers = with lib.maintainers; [ jwiegley ptival ];