2021-03-16 00:28:51 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
|
|
|
, ctypes, result
|
|
|
|
, alcotest
|
|
|
|
, file
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "luv";
|
2021-08-19 10:58:02 +01:00
|
|
|
version = "0.5.10";
|
2021-03-16 00:28:51 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/aantron/luv/releases/download/${version}/luv-${version}.tar.gz";
|
2021-08-19 10:58:02 +01:00
|
|
|
sha256 = "0zygir01d6vglfs4b3klnbg90glvyl9agq5xnzn8hmsb6d8z0jqp";
|
2021-03-16 00:28:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|