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

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

36 lines
1014 B
Nix
Raw Normal View History

2022-08-23 06:04:50 +00:00
{ lib, buildDunePackage, ocaml, fetchurl
, ctypes, result
, alcotest
, file
}:
buildDunePackage rec {
pname = "luv";
2022-02-12 19:10:29 +00:00
version = "0.5.11";
useDune2 = true;
src = fetchurl {
url = "https://github.com/aantron/luv/releases/download/${version}/luv-${version}.tar.gz";
2022-02-12 19:10:29 +00:00
sha256 = "sha256-zOz0cxGzhLi3Q36qyStNCz8JGXHtECQfZysMKiyKOkM=";
};
postConfigure = ''
for f in src/c/vendor/configure/{ltmain.sh,configure}; do
substituteInPlace "$f" --replace /usr/bin/file file
done
'';
nativeBuildInputs = [ file ];
propagatedBuildInputs = [ ctypes result ];
checkInputs = [ alcotest ];
2022-08-23 06:04:50 +00:00
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = with lib; {
homepage = "https://github.com/aantron/luv";
description = "Binding to libuv: cross-platform asynchronous I/O";
# MIT-licensed, extra licenses apply partially to libuv vendor
license = with licenses; [ mit bsd2 bsd3 cc-by-sa-40 ];
maintainers = with maintainers; [ locallycompact sternenseemann ];
};
}