2021-01-09 10:05:03 +00:00
|
|
|
{ lib, mkCoqDerivation, autoreconfHook, coq, version ? null }:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
let hasWarning = lib.versionAtLeast coq.ocamlPackages.ocaml.version "4.08"; in
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
mkCoqDerivation {
|
|
|
|
pname = "dpdgraph";
|
|
|
|
owner = "Karmaki";
|
|
|
|
repo = "coq-dpdgraph";
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = lib.switch coq.coq-version [
|
2024-01-02 11:29:13 +00:00
|
|
|
{ case = "8.18"; out = "1.0+8.18"; }
|
2023-05-24 13:37:59 +00:00
|
|
|
{ case = "8.17"; out = "1.0+8.17"; }
|
2022-08-12 12:06:08 +00:00
|
|
|
{ case = "8.16"; out = "1.0+8.16"; }
|
2022-02-10 20:34:41 +00:00
|
|
|
{ case = "8.15"; out = "1.0+8.15"; }
|
2021-12-06 16:07:01 +00:00
|
|
|
{ case = "8.14"; out = "1.0+8.14"; }
|
|
|
|
{ case = "8.13"; out = "1.0+8.13"; }
|
2021-01-09 10:05:03 +00:00
|
|
|
{ case = "8.12"; out = "0.6.8"; }
|
|
|
|
{ case = "8.11"; out = "0.6.7"; }
|
|
|
|
{ case = "8.10"; out = "0.6.6"; }
|
|
|
|
{ case = "8.9"; out = "0.6.5"; }
|
|
|
|
{ case = "8.8"; out = "0.6.3"; }
|
|
|
|
{ case = "8.7"; out = "0.6.2"; }
|
|
|
|
] null;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
release."1.0+8.18".sha256 = "sha256-z14MI1VSYzPqmF1PqDXzymXWRMYoTlQAfR/P3Pdf7fI=";
|
2023-05-24 13:37:59 +00:00
|
|
|
release."1.0+8.17".sha256 = "sha256-gcvL3vseLKEF9xinT0579jXBBaA5E3rJ5KaU8RfKtm4=";
|
2022-08-12 12:06:08 +00:00
|
|
|
release."1.0+8.16".sha256 = "sha256-xy4xcVHaD1OHBdGUzUy3SeZnHtOf1+UIh6YjUYFINm0=";
|
2022-02-10 20:34:41 +00:00
|
|
|
release."1.0+8.15".sha256 = "sha256:1pxr0gakcz297y8hhrnssv5j07ccd58pv7rh7qv5g7855pfqrkg7";
|
2021-12-06 16:07:01 +00:00
|
|
|
release."1.0+8.14".sha256 = "sha256:01pmi7jcc77431jii6x6nd4m8jg4vycachiyi1h6dx9rp3a2508s";
|
|
|
|
release."1.0+8.13".sha256 = "sha256:0f8lj8b99n8nsq2jf5m0snblfs8yz50hmlqqq9nlw4qklq7j4z5z";
|
2021-02-16 17:04:54 +00:00
|
|
|
release."0.6.9".sha256 = "11mbydpcgk7y8pqzickbzx0ig7g9k9al71i9yfrcscd2xj8fwj8z";
|
2021-01-09 10:05:03 +00:00
|
|
|
release."0.6.8".sha256 = "1mj6sknsd53xfb387sp3kdwvl4wn80ck24bfzf3s6mgw1a12vyps";
|
|
|
|
release."0.6.7".sha256 = "01vpi7scvkl4ls1z2k2x9zd65wflzb667idj759859hlz3ps9z09";
|
|
|
|
release."0.6.6".sha256 = "1gjrm5zjzw4cisiwdr5b3iqa7s4cssa220xr0k96rwgk61rcjd8w";
|
|
|
|
release."0.6.5".sha256 = "1f34z24yg05b1096gqv36jr3vffkcjkf9qncii3pzhhvagxd0w2f";
|
|
|
|
release."0.6.3".rev = "0acbd0a594c7e927574d5f212cc73a486b5305d2";
|
|
|
|
release."0.6.3".sha256 = "0c95b0bz2kjm6swr5na4gs06lxxywradszxbr5ldh2zx02r3f3rx";
|
|
|
|
release."0.6.2".rev = "d76ddde37d918569945774733b7997e8b24daf51";
|
|
|
|
release."0.6.2".sha256 = "04lnf4b25yarysj848cfl8pd3i3pr3818acyp9hgwdgd1rqmhjwm";
|
|
|
|
release."0.6.1".rev = "c3b87af6bfa338e18b83f014ebd0e56e1f611663";
|
|
|
|
release."0.6.1".sha256 = "1jaafkwsb5450378nprjsds1illgdaq60gryi8kspw0i25ykz2c9";
|
|
|
|
release."0.6".sha256 = "0qvar8gfbrcs9fmvkph5asqz4l5fi63caykx3bsn8zf0xllkwv0n";
|
|
|
|
releaseRev = v: "v${v}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2021-01-09 10:05:03 +00:00
|
|
|
mlPlugin = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
buildInputs = [ coq.ocamlPackages.ocamlgraph ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# dpd_compute.ml uses deprecated Pervasives.compare
|
|
|
|
# Versions prior to 0.6.5 do not have the WARN_ERR build flag
|
2023-02-02 18:25:31 +00:00
|
|
|
preConfigure = lib.optionalString hasWarning ''
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace Makefile.in --replace "-warn-error +a " ""
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildFlags = lib.optional hasWarning "WARN_ERR=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
extraInstallFlags = [ "BINDIR=$(out)/bin" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Build dependency graphs between Coq objects";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|