mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
99f9563830
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ocaml4.06.1-resource-pooling/versions
36 lines
1,019 B
Nix
36 lines
1,019 B
Nix
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, lwt_log }:
|
|
|
|
let pname = "resource-pooling"; in
|
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.06"
|
|
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.6";
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocsigen";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1hw98a4pndq6ms4vfsyz0ynfz8g21fm73fc7s1gx824fhdx4ywgd";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
|
propagatedBuildInputs = [ lwt_log ];
|
|
|
|
configurePhase = "ocaml setup.ml -configure --prefix $out";
|
|
buildPhase = "ocaml setup.ml -build";
|
|
createFindlibDestdir = true;
|
|
installPhase = "ocaml setup.ml -install";
|
|
|
|
meta = {
|
|
inherit (src.meta) homepage;
|
|
inherit (ocaml.meta) platforms;
|
|
description = "A library for pooling resources like connections, threads, or similar";
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
};
|
|
}
|