2023-01-11 07:51:40 +00:00
|
|
|
{ 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
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "parany";
|
2023-01-11 07:51:40 +00:00
|
|
|
inherit (params) version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
minimalOCamlVersion = "4.08";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "UnixJunkie";
|
2021-07-24 12:14:16 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
inherit (params) hash;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
inherit (params) propagatedBuildInputs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Generalized map/reduce for multicore computing";
|
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|