2021-01-09 10:05:03 +00:00
|
|
|
{lib, fetchzip, mkCoqDerivation, coq, version ? null }:
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
let fetcher = {rev, repo, owner, sha256, domain, ...}:
|
|
|
|
fetchzip {
|
|
|
|
url = "https://${domain}/${owner}/${repo}/download/${repo}-${rev}.zip";
|
|
|
|
inherit sha256;
|
|
|
|
}; in
|
2021-01-09 10:05:03 +00:00
|
|
|
with lib; mkCoqDerivation {
|
|
|
|
pname = "heq";
|
|
|
|
repo = "Heq";
|
2022-06-16 17:23:12 +00:00
|
|
|
owner = "gil.hur";
|
|
|
|
domain = "sf.snu.ac.kr";
|
2021-01-09 10:05:03 +00:00
|
|
|
inherit version fetcher;
|
|
|
|
defaultVersion = if versions.isLt "8.8" coq.coq-version then "0.92" else null;
|
|
|
|
release."0.92".sha256 = "0cf8y6728n81wwlbpq3vi7l2dbzi7759klypld4gpsjjp1y1fj74";
|
|
|
|
|
|
|
|
mlPlugin = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
preBuild = "cd src";
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
extraInstallFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
meta = {
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://ropas.snu.ac.kr/~gil.hur/Heq/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Heq : a Coq library for Heterogeneous Equality";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
};
|
|
|
|
}
|