From 3b1eea4c8319c075576e68728669a3bc4a577135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 29 Jul 2008 16:52:26 +0000 Subject: [PATCH] aMule 2.2.1. svn path=/nixpkgs/trunk/; revision=12446 --- pkgs/tools/networking/p2p/amule/default.nix | 43 +++++++++++++++------ pkgs/top-level/all-packages.nix | 3 +- 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/networking/p2p/amule/default.nix b/pkgs/tools/networking/p2p/amule/default.nix index a7b89a41c8c..38aa9474f79 100644 --- a/pkgs/tools/networking/p2p/amule/default.nix +++ b/pkgs/tools/networking/p2p/amule/default.nix @@ -1,18 +1,37 @@ -args: with args; -stdenv.mkDerivation { - name = "aMule-2.1.3"; +{ fetchurl, stdenv, zlib, wxGTK, perl, cryptopp, gettext }: - src = - fetchurl { - url = mirror://sourceforge/amule/aMule-2.1.3.tar.bz2; - sha256 = "0i027g8sc865c9hgrnz9syy3j0pcl84sa89vbsvk3hkspd3yk5vf"; - }; +stdenv.mkDerivation rec { + name = "aMule-2.2.1"; - buildInputs =[zlib wxGTK]; + src = fetchurl { + url = "mirror://sourceforge/amule/${name}.tar.bz2"; + sha256 = "0zcsyy6bm7ls1dpmfm0yskd2gj50ah2bvkm0v42826zwzj6sbxy9"; + }; + + buildInputs = [ zlib wxGTK perl cryptopp gettext ]; + + configureFlags = "--with-crypto-prefix=${cryptopp}"; + + postConfigure = '' + sed -i "src/libs/ec/file_generator.pl" \ + -es'|/usr/bin/perl|${perl}/bin/perl|g' + ''; meta = { - description = " - EDonkey client. -"; + homepage = http://amule.org/; + description = "aMule, a peer-to-peer client for the eD2K and Kademlia networks"; + + longDescription = '' + aMule is an eMule-like client for the eD2k and Kademlia + networks, supporting multiple platforms. Currently aMule + (officially) supports a wide variety of platforms and operating + systems, being compatible with more than 60 different + hardware+OS configurations. aMule is entirely free, its + sourcecode released under the GPL just like eMule, and includes + no adware or spyware as is often found in proprietary P2P + applications. + ''; + + license = "GPLv2+"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b9bcccca62b..df3662b1aa1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -395,7 +395,8 @@ let pkgs = rec { }; amule = import ../tools/networking/p2p/amule { - inherit fetchurl stdenv zlib wxGTK; + inherit fetchurl stdenv zlib perl cryptopp gettext; + wxGTK = wxGTK28; }; aria = builderDefsPackage (import ../tools/networking/aria) {