Merge pull request #116490 from sternenseemann/luv-0.5.7
ocamlPackages.luv: init at 0.5.7
This commit is contained in:
commit
30467aa9dd
|
@ -5554,6 +5554,12 @@
|
||||||
githubId = 7622248;
|
githubId = 7622248;
|
||||||
name = "Sebastian Zivota";
|
name = "Sebastian Zivota";
|
||||||
};
|
};
|
||||||
|
locallycompact = {
|
||||||
|
email = "dan.firth@homotopic.tech";
|
||||||
|
github = "locallycompact";
|
||||||
|
githubId = 1267527;
|
||||||
|
name = "Daniel Firth";
|
||||||
|
};
|
||||||
lopsided98 = {
|
lopsided98 = {
|
||||||
email = "benwolsieffer@gmail.com";
|
email = "benwolsieffer@gmail.com";
|
||||||
github = "lopsided98";
|
github = "lopsided98";
|
||||||
|
|
35
pkgs/development/ocaml-modules/luv/default.nix
Normal file
35
pkgs/development/ocaml-modules/luv/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ lib, buildDunePackage, fetchurl
|
||||||
|
, ctypes, result
|
||||||
|
, alcotest
|
||||||
|
, file
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "luv";
|
||||||
|
version = "0.5.7";
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/aantron/luv/releases/download/${version}/luv-${version}.tar.gz";
|
||||||
|
sha256 = "0wjnw5riydnzsk1xdzljlpzdnjwpa0j597y6x6ma4990mqj54260";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -576,6 +576,10 @@ let
|
||||||
|
|
||||||
lua-ml = callPackage ../development/ocaml-modules/lua-ml { };
|
lua-ml = callPackage ../development/ocaml-modules/lua-ml { };
|
||||||
|
|
||||||
|
luv = callPackage ../development/ocaml-modules/luv {
|
||||||
|
inherit (pkgs) file;
|
||||||
|
};
|
||||||
|
|
||||||
lwt = callPackage ../development/ocaml-modules/lwt {
|
lwt = callPackage ../development/ocaml-modules/lwt {
|
||||||
ocaml-migrate-parsetree = ocaml-migrate-parsetree-2-1;
|
ocaml-migrate-parsetree = ocaml-migrate-parsetree-2-1;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user