From e53d966a211d5d3cbb97b9c00080f887b45eb150 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 17 Oct 2010 19:30:59 +0000 Subject: [PATCH] Add getmail svn path=/nixpkgs/trunk/; revision=24334 --- pkgs/tools/networking/getmail/default.nix | 48 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/tools/networking/getmail/default.nix diff --git a/pkgs/tools/networking/getmail/default.nix b/pkgs/tools/networking/getmail/default.nix new file mode 100644 index 00000000000..4e10a2b3be1 --- /dev/null +++ b/pkgs/tools/networking/getmail/default.nix @@ -0,0 +1,48 @@ +x@{builderDefsPackage + , python, makeWrapper + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + 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; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["installPythonPackage" "patchShebangs" "wrapBinContentsPython"]; + patchShebangs = (a.doPatchShebangs "$out/bin"); + + meta = { + description = "A program for retrieval of mail"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://pyropus.ca/software/getmail/"; + }; + }; +}) x + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9bfbaddea51..ef0ef67a2f7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -631,6 +631,8 @@ let gengetopt = callPackage ../development/tools/misc/gengetopt { }; + getmail = callPackage ../tools/networking/getmail {}; + getopt = callPackage ../tools/misc/getopt { }; gftp = callPackage ../tools/networking/gftp { };