ocamlPackages.parany: 12.1.2 → {12.2.2, 13.0.1}
This commit is contained in:
parent
62cc26f3f6
commit
3c4aef1767
|
@ -1,20 +1,32 @@
|
||||||
{ lib, buildDunePackage, fetchFromGitHub, ocamlnet, cpu }:
|
{ lib, buildDunePackage, fetchFromGitHub, ocaml, cpu, domainslib }:
|
||||||
|
|
||||||
|
let params =
|
||||||
|
if lib.versionAtLeast ocaml.version "5.00" then {
|
||||||
|
version = "13.0.1";
|
||||||
|
hash = "sha256-OYa0uLsDyzjmXZgWcYUxLhqco4Kp/icfDamNe3En5JQ=";
|
||||||
|
propagatedBuildInputs = [ domainslib ];
|
||||||
|
} else {
|
||||||
|
version = "12.2.2";
|
||||||
|
hash = "sha256-woZ4XJqqoRr/7mDurXYvTbSUUcLBEylzVYBQp1BAOqc=";
|
||||||
|
propagatedBuildInputs = [ cpu ];
|
||||||
|
}
|
||||||
|
; in
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "parany";
|
pname = "parany";
|
||||||
version = "12.1.2";
|
inherit (params) version;
|
||||||
|
|
||||||
useDune2 = true;
|
duneVersion = "3";
|
||||||
minimumOCamlVersion = "4.03.0";
|
minimalOCamlVersion = "4.08";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "UnixJunkie";
|
owner = "UnixJunkie";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "yOeJzb2Wr6jA4efI9/fuqDCl/Tza3zxT3YjAiJmhHHg=";
|
inherit (params) hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ ocamlnet cpu ];
|
inherit (params) propagatedBuildInputs;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
|
|
Loading…
Reference in a new issue