diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-28 13:13:15 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-28 13:13:15 +0000 |
commit | f119c267ded19038abad4e43f2077121ba604891 (patch) | |
tree | ae326eada6fe6590901365fc5296367a4e7474b3 /pkgs/tools/networking/getmail | |
parent | cef7e52b5af177a01d277418d7771d7a983abc58 (diff) |
* getmail: don't use pythonFull.
svn path=/nixpkgs/branches/modular-python/; revision=26566
Diffstat (limited to 'pkgs/tools/networking/getmail')
-rw-r--r-- | pkgs/tools/networking/getmail/default.nix | 59 |
1 files changed, 17 insertions, 42 deletions
diff --git a/pkgs/tools/networking/getmail/default.nix b/pkgs/tools/networking/getmail/default.nix index 4e10a2b3be1e..77bc9a2b9dfe 100644 --- a/pkgs/tools/networking/getmail/default.nix +++ b/pkgs/tools/networking/getmail/default.nix @@ -1,48 +1,23 @@ -x@{builderDefsPackage - , python, makeWrapper - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; +{ stdenv, fetchurl, buildPythonPackage, pythonPackages }: - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="getmail"; - version="4.20.0"; - name="${baseName}-${version}"; - url="http://pyropus.ca/software/${baseName}/old-versions/${name}.tar.gz"; - hash="17cpyra61virk1d223w8pdwhv2qzhbwdbnrr1ab1znf4cv9m3knn"; - }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; +buildPythonPackage rec { + name = "getmail-4.20.0"; + namePrefix = ""; + + src = fetchurl { + url = "http://pyropus.ca/software/getmail/old-versions/${name}.tar.gz"; + sha256 = "17cpyra61virk1d223w8pdwhv2qzhbwdbnrr1ab1znf4cv9m3knn"; }; - inherit (sourceInfo) name version; - inherit buildInputs; + propagatedBuildInputs = [ pythonPackages.ssl ]; + + doCheck = false; - /* doConfigure should be removed if not needed */ - phaseNames = ["installPythonPackage" "patchShebangs" "wrapBinContentsPython"]; - patchShebangs = (a.doPatchShebangs "$out/bin"); - + installCommand = "python setup.py install --prefix=\"\$prefix\""; + meta = { - description = "A program for retrieval of mail"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; + description = "A program for retrieving mail"; + maintainers = [ stdenv.lib.maintainers.raskin ]; + platforms = stdenv.lib.platforms.linux; }; - passthru = { - updateInfo = { - downloadPage = "http://pyropus.ca/software/getmail/"; - }; - }; -}) x - +} |