nixpkgs/pkgs/development/ocaml-modules/parany/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
916 B
Nix
Raw Normal View History

{ 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
2019-11-25 20:43:05 +00:00
buildDunePackage rec {
pname = "parany";
inherit (params) version;
2019-11-25 20:43:05 +00:00
duneVersion = "3";
minimalOCamlVersion = "4.08";
2021-04-01 06:46:19 +00:00
2019-11-25 20:43:05 +00:00
src = fetchFromGitHub {
owner = "UnixJunkie";
2021-05-22 06:09:34 +00:00
repo = pname;
rev = "v${version}";
inherit (params) hash;
2019-11-25 20:43:05 +00:00
};
inherit (params) propagatedBuildInputs;
2019-11-25 20:43:05 +00:00
meta = with lib; {
2019-11-25 20:43:05 +00:00
inherit (src.meta) homepage;
description = "Generalized map/reduce for multicore computing";
maintainers = [ maintainers.bcdarwin ];
license = licenses.lgpl2;
};
}