Files
nixpkgs/pkgs/development/ocaml-modules/functory/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
ocaml,
findlib,
}:
let
param =
if lib.versionAtLeast ocaml.version "4.02" then
{
version = "0.6";
sha256 = "18wpyxblz9jh5bfp0hpffnd0q8cq1b0dqp0f36vhqydfknlnpx8y";
}
else
{
version = "0.5";
sha256 = "1j17rhifdjv1z262dma148ywg34x0zjn8vczdrnkwajsm4qg1hw3";
};
in
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-functory";
inherit (param) version;
src = fetchurl {
url = "https://www.lri.fr/~filliatr/functory/download/functory-${param.version}.tar.gz";
inherit (param) sha256;
};
nativeBuildInputs = [
ocaml
findlib
];
strictDeps = true;
installTargets = [ "ocamlfind-install" ];
createFindlibDestdir = true;
meta = {
homepage = "https://www.lri.fr/~filliatr/functory/";
description = "Distributed computing library for Objective Caml which facilitates distributed execution of parallelizable computations in a seamless fashion";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
broken = lib.versionAtLeast ocaml.version "5.0";
inherit (ocaml.meta) platforms;
};
}