Adding libev - an even loop library remotely similar to libevent
svn path=/nixpkgs/trunk/; revision=16877
This commit is contained in:
parent
39b651fb44
commit
a1ea759dd9
6 changed files with 47 additions and 4 deletions
|
@ -8,5 +8,5 @@ relpath="${path#$server}"
|
|||
|
||||
echo "URL: $url" >&2
|
||||
|
||||
curl -k "$url" | sed -re 's/^/-/;s/[hH][rR][eE][fF]="([^"]*)"/\n+\1\n-/g' | \
|
||||
curl -L -k "$url" | sed -re 's/^/-/;s/[hH][rR][eE][fF]="([^"]*)"/\n+\1\n-/g' | \
|
||||
sed -e '/^-/d; s/^[+]//; /^#/d;'"s/^\\//$protocol:\\/\\/$server\\//g"
|
||||
|
|
26
pkgs/development/libraries/libev/default.nix
Normal file
26
pkgs/development/libraries/libev/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
a :
|
||||
let
|
||||
s = import ./src-for-default.nix;
|
||||
buildInputs = with a; [
|
||||
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = a.fetchUrlFromSrcInfo s;
|
||||
|
||||
inherit (s) name;
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
||||
|
||||
meta = {
|
||||
description = "An event loop library remotely similar to libevent";
|
||||
maintainers = [
|
||||
a.lib.maintainers.raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
linux ++ freebsd;
|
||||
};
|
||||
}
|
8
pkgs/development/libraries/libev/src-for-default.nix
Normal file
8
pkgs/development/libraries/libev/src-for-default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
rec {
|
||||
advertisedUrl="http://dist.schmorp.de/libev/Attic/libev-3.8.tar.gz";
|
||||
version = "3.8";
|
||||
url="http://dist.schmorp.de/libev/Attic/libev-3.8.tar.gz";
|
||||
hash = "1512n6c5q9ykqmk5zbwyb1na9qb9shd900kf4xhl5g07aypm7qr5";
|
||||
name = "libev-3.8";
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
downloadPage = "http://dist.schmorp.de/libev/Attic/?M=D";
|
||||
sourceRegexp = "(^|/)libev-.*[.]tar[.]gz";
|
||||
baseName = "libev";
|
||||
}
|
|
@ -2,9 +2,10 @@ let
|
|||
lists = import ./lists.nix;
|
||||
in
|
||||
rec {
|
||||
linux = ["i686-linux" "x86_64-linux"];
|
||||
darwin = ["i686-darwin"];
|
||||
linux = ["i686-linux" "x86_64-linux" "powerpc-linux"];
|
||||
darwin = ["i686-darwin" "powerpc-darwin"];
|
||||
freebsd = ["i686-freebsd" "x86_64-freebsd" "powerpc-freebsd"];
|
||||
cygwin = ["i686-cygwin"];
|
||||
all = linux ++ darwin ++ cygwin;
|
||||
all = linux ++ darwin ++ cygwin ++ freebsd;
|
||||
allBut = platform: lists.filter (x: platform != x) all;
|
||||
}
|
||||
|
|
|
@ -3494,6 +3494,9 @@ let
|
|||
inherit fetchurl stdenv ncurses;
|
||||
};
|
||||
|
||||
libev = builderDefsPackage ../development/libraries/libev {
|
||||
};
|
||||
|
||||
libevent = import ../development/libraries/libevent {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue