2015-09-28 16:16:05 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
2015-06-21 07:56:48 +00:00
|
|
|
|
|
|
|
, ApplicationServices, CoreServices }:
|
2014-07-09 00:08:45 +00:00
|
|
|
|
2016-04-25 14:04:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-05-18 15:10:53 +00:00
|
|
|
version = "1.9.1";
|
2016-04-25 14:04:22 +00:00
|
|
|
name = "libuv-${version}";
|
2014-07-09 00:08:45 +00:00
|
|
|
|
2016-04-25 14:04:22 +00:00
|
|
|
src = fetchFromGitHub {
|
2015-01-08 04:56:06 +00:00
|
|
|
owner = "libuv";
|
2014-07-09 00:08:45 +00:00
|
|
|
repo = "libuv";
|
|
|
|
rev = "v${version}";
|
2016-05-18 15:10:53 +00:00
|
|
|
sha256 = "1kc386gkkkymgz9diz1z4r8impcsmki5k88dsiasd6v9bfvq04cc";
|
2014-07-09 00:08:45 +00:00
|
|
|
};
|
|
|
|
|
2016-04-25 14:04:22 +00:00
|
|
|
buildInputs = [ automake autoconf libtool pkgconfig ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ];
|
2014-07-09 00:08:45 +00:00
|
|
|
|
2016-04-25 14:04:22 +00:00
|
|
|
preConfigure = ''
|
|
|
|
LIBTOOLIZE=libtoolize ./autogen.sh
|
|
|
|
'';
|
2014-07-09 00:08:45 +00:00
|
|
|
|
2016-04-25 14:04:22 +00: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;
|
2014-07-09 00:08:45 +00:00
|
|
|
};
|
|
|
|
|
2016-04-25 14:04:22 +00:00
|
|
|
}
|