2021-01-09 10:05:03 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, version ? null }:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
mkCoqDerivation {
|
2021-01-09 10:05:03 +00:00
|
|
|
pname = "paco";
|
|
|
|
owner = "snu-sf";
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch coq.coq-version [
|
2022-06-16 17:23:12 +00:00
|
|
|
{ case = range "8.12" "8.16"; out = "4.1.2"; }
|
2021-12-24 04:21:11 +00:00
|
|
|
{ case = range "8.9" "8.13"; out = "4.1.1"; }
|
|
|
|
{ case = range "8.6" "8.13"; out = "4.0.2"; }
|
2021-10-14 00:43:12 +00:00
|
|
|
{ case = isEq "8.5"; out = "1.2.8"; }
|
2021-01-09 10:05:03 +00:00
|
|
|
] null;
|
2021-12-24 04:21:11 +00:00
|
|
|
release."4.1.2".sha256 = "sha256:1l8mwakqp4wnppsldl8wp2j24h1jvadnvrsgf35xnvdyygypjp2v";
|
2021-12-19 01:06:50 +00:00
|
|
|
release."4.1.1".sha256 = "1qap8cyv649lr1s11r7h5jzdjd4hsna8kph15qy5fw24h5nx6byy";
|
2021-01-09 10:05:03 +00:00
|
|
|
release."4.0.2".sha256 = "1q96bsxclqx84xn5vkid501jkwlc1p6fhb8szrlrp82zglj58b0b";
|
|
|
|
release."1.2.8".sha256 = "05fskx5x1qgaf9qv626m38y5izichzzqc7g2rglzrkygbskrrwsb";
|
|
|
|
releaseRev = v: "v${v}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preBuild = "cd src";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
|
|
|
mkdir -p $COQLIB/user-contrib/Paco
|
|
|
|
cp -pR *.vo $COQLIB/user-contrib/Paco
|
|
|
|
'';
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
meta = {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://plv.mpi-sws.org/paco/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Coq library implementing parameterized coinduction";
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with lib.maintainers; [ jwiegley ptival ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|