Author: raskin
Date: Sun Oct 17 19:30:59 2010
New Revision: 24334
URL: https://svn.nixos.org/websvn/nix/?rev=24334&sc=1

Log:
Add getmail

Added:
   nixpkgs/trunk/pkgs/tools/networking/getmail/
   nixpkgs/trunk/pkgs/tools/networking/getmail/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/tools/networking/getmail/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/networking/getmail/default.nix     Sun Oct 17 
19:30:59 2010        (r24334)
@@ -0,0 +1,48 @@
+...@{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
+

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Oct 17 19:07:03 
2010        (r24333)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Oct 17 19:30:59 
2010        (r24334)
@@ -631,6 +631,8 @@
 
   gengetopt = callPackage ../development/tools/misc/gengetopt { };
 
+  getmail = callPackage ../tools/networking/getmail {};
+
   getopt = callPackage ../tools/misc/getopt { };
 
   gftp = callPackage ../tools/networking/gftp { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to