depot/third_party/nixpkgs/pkgs/development/ocaml-modules/parany/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

37 lines
916 B
Nix

{ 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 {
pname = "parany";
inherit (params) version;
duneVersion = "3";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "UnixJunkie";
repo = pname;
rev = "v${version}";
inherit (params) hash;
};
inherit (params) propagatedBuildInputs;
meta = with lib; {
inherit (src.meta) homepage;
description = "Generalized map/reduce for multicore computing";
maintainers = [ maintainers.bcdarwin ];
license = licenses.lgpl2;
};
}