libev: port to mkDerivation

This commit is contained in:
Joachim Fasting 2015-03-24 19:44:00 +01:00
parent a869c8351c
commit be7ef555f2
4 changed files with 11 additions and 33 deletions

View file

@ -1,25 +1,17 @@
a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
];
in
rec {
src = a.fetchUrlFromSrcInfo s;
{ stdenv, fetchurl }:
inherit (s) name;
inherit buildInputs;
configureFlags = [];
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
stdenv.mkDerivation rec {
name = "libev-${version}";
version="4.15";
src = fetchurl {
url = "http://dist.schmorp.de/libev/Attic/${name}.tar.gz";
sha256 = "1svgc1hq4i5zsw4i02sf7xb4pk2d8kpvc1gdrd856vsmffh47pdj";
};
meta = {
description = "An event loop library remotely similar to libevent";
maintainers = [
a.lib.maintainers.raskin
stdenv.lib.maintainers.raskin
];
platforms = a.lib.platforms.all;
platforms = stdenv.lib.platforms.all;
};
}

View file

@ -1,9 +0,0 @@
rec {
version="4.15";
name="libev-4.15";
hash="1svgc1hq4i5zsw4i02sf7xb4pk2d8kpvc1gdrd856vsmffh47pdj";
url="http://dist.schmorp.de/libev/Attic/libev-${version}.tar.gz";
advertisedUrl="http://dist.schmorp.de/libev/Attic/libev-4.15.tar.gz";
}

View file

@ -1,5 +0,0 @@
{
downloadPage = "http://dist.schmorp.de/libev/Attic/?M=D";
sourceRegexp = "(^|/)libev-.*[.]tar[.]gz";
baseName = "libev";
}

View file

@ -6193,7 +6193,7 @@ let
libechonest = callPackage ../development/libraries/libechonest { };
libev = builderDefsPackage ../development/libraries/libev { };
libev = callPackage ../development/libraries/libev { };
libevent14 = callPackage ../development/libraries/libevent/1.4.nix { };
libevent = callPackage ../development/libraries/libevent { };