diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-24 19:44:00 +0100 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-03-24 19:44:26 +0100 |
commit | be7ef555f26ae8d1fc45898f02a7d26b478c9c3c (patch) | |
tree | 48db538cb91eaafa67deaa84aa92f4cd02ca1664 /pkgs/development/libraries/libev | |
parent | a869c8351cfcd6ec42147e7f1c8f4f14ac20e587 (diff) |
libev: port to mkDerivation
Diffstat (limited to 'pkgs/development/libraries/libev')
-rw-r--r-- | pkgs/development/libraries/libev/default.nix | 28 | ||||
-rw-r--r-- | pkgs/development/libraries/libev/src-for-default.nix | 9 | ||||
-rw-r--r-- | pkgs/development/libraries/libev/src-info-for-default.nix | 5 |
3 files changed, 10 insertions, 32 deletions
diff --git a/pkgs/development/libraries/libev/default.nix b/pkgs/development/libraries/libev/default.nix index 6b070c170c7db..e96c69f213844 100644 --- a/pkgs/development/libraries/libev/default.nix +++ b/pkgs/development/libraries/libev/default.nix @@ -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; }; } diff --git a/pkgs/development/libraries/libev/src-for-default.nix b/pkgs/development/libraries/libev/src-for-default.nix deleted file mode 100644 index 3e4f58a5ce0f4..0000000000000 --- a/pkgs/development/libraries/libev/src-for-default.nix +++ /dev/null @@ -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"; - - -} diff --git a/pkgs/development/libraries/libev/src-info-for-default.nix b/pkgs/development/libraries/libev/src-info-for-default.nix deleted file mode 100644 index e14ca41955041..0000000000000 --- a/pkgs/development/libraries/libev/src-info-for-default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - downloadPage = "http://dist.schmorp.de/libev/Attic/?M=D"; - sourceRegexp = "(^|/)libev-.*[.]tar[.]gz"; - baseName = "libev"; -} |