ocamlPackages.parany: 13.0.1 -> 14.0.0

This commit is contained in:
Ben Darwin 2023-08-13 11:19:19 -04:00 committed by Vincent Laporte
parent 884c620600
commit 4d3a8e215a

View File

@ -1,35 +1,22 @@
{ 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
{ lib, buildDunePackage, fetchFromGitHub, cpu }:
buildDunePackage rec {
pname = "parany";
inherit (params) version;
version = "14.0.0";
duneVersion = "3";
minimalOCamlVersion = "4.08";
src = fetchFromGitHub {
owner = "UnixJunkie";
repo = pname;
rev = "v${version}";
inherit (params) hash;
hash = "sha256-L5jHm3gZ2XIJ7jMUb/KvpSa/bnprEX75/P3BCMSe9Ok=";
};
inherit (params) propagatedBuildInputs;
propagatedBuildInputs = [ cpu ];
meta = with lib; {
inherit (src.meta) homepage;
homepage = "https://github.com/UnixJunkie/parany";
description = "Generalized map/reduce for multicore computing";
maintainers = [ maintainers.bcdarwin ];
license = licenses.lgpl2;