forked from mirrors/nixpkgs
176ab26cce
Enabling tests is not feasible as the test suite takes > 45min (haven't even run it to completion yet) which is not a good idea in ocamlPackages where you often have to build from source. Additionally it would require fetching the git repository since the test suite is not contained in the release tarball. Co-authored-by: locallycompact <dan.firth@homotopic.tech>
36 lines
972 B
Nix
36 lines
972 B
Nix
{ 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 ];
|
|
};
|
|
}
|