nixpkgs/pkgs/development/libraries/libuv/default.nix

40 lines
1.0 KiB
Nix
Raw Normal View History

2015-09-28 09:16:05 -07:00
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
2015-06-21 00:56:48 -07:00
, ApplicationServices, CoreServices }:
2016-04-25 07:04:22 -07:00
stdenv.mkDerivation rec {
version = "1.10.1";
2016-04-25 07:04:22 -07:00
name = "libuv-${version}";
2016-04-25 07:04:22 -07:00
src = fetchFromGitHub {
owner = "libuv";
repo = "libuv";
rev = "v${version}";
sha256 = "0gna53fgsjjs38kv1g20xfaalv0fk3xncb6abga3saswrv283hx0";
};
# these checks are probably network-dependent
postPatch = lib.optionalString doCheck ''
sed '/getnameinfo_basic/d' -i test/test-list.h
'';
2016-04-25 07:04:22 -07:00
buildInputs = [ automake autoconf libtool pkgconfig ]
++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ];
2016-04-25 07:04:22 -07:00
preConfigure = ''
LIBTOOLIZE=libtoolize ./autogen.sh
'';
enableParallelBuilding = true;
doCheck = true;
2016-04-25 07:04:22 -07:00
meta = with lib; {
description = "A multi-platform support library with a focus on asynchronous I/O";
homepage = https://github.com/libuv/libuv;
maintainers = with maintainers; [ cstrahan ];
platforms = with platforms; linux ++ darwin;
};
2016-04-25 07:04:22 -07:00
}