Author: raskin
Date: Mon Oct 18 05:33:31 2010
New Revision: 24336
URL: https://svn.nixos.org/websvn/nix/?rev=24336&sc=1

Log:
Adding philter mail sorter

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

Added: nixpkgs/trunk/pkgs/tools/networking/philter/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/networking/philter/default.nix     Mon Oct 18 
05:33:31 2010        (r24336)
@@ -0,0 +1,57 @@
+...@{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="philter";
+    version="1.1";
+    name="${baseName}-${version}";
+    url="http://prdownloads.sourceforge.net/${baseName}/${name}.tar.gz";;
+    hash="177pqfflhdn2mw9lc1wv9ik32ji69rjqr6dw83hfndwlsva5151l";
+  };
+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 = ["installProgram" "patchShebangs" "wrapBinContentsPython"];
+  patchShebangs = (a.doPatchShebangs "$out/bin");
+
+  installProgram = a.fullDepEntry(''
+    mv "$out/share/philter/".*rc "$out/share/philter/philterrc"
+    ensureDir "$out/bin"
+    cp "$out/share/philter/src/philter.py" "$out/bin/philter"
+    chmod a+x "$out/bin/philter"
+  '') ["addInputs" "copyToShare" "minInit"];
+
+  copyToShare = (a.simplyShare "philter");
+      
+  meta = {
+    description = "Mail sorter for Maildirs";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://philter.sourceforge.net/";;
+    };
+  };
+}) x
+

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Oct 17 22:11:08 
2010        (r24335)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Mon Oct 18 05:33:31 
2010        (r24336)
@@ -631,7 +631,9 @@
 
   gengetopt = callPackage ../development/tools/misc/gengetopt { };
 
-  getmail = callPackage ../tools/networking/getmail {};
+  getmail = callPackage ../tools/networking/getmail {
+    python = pythonFull;
+  };
 
   getopt = callPackage ../tools/misc/getopt { };
 
@@ -1009,6 +1011,8 @@
     qt = qt3;
   };
 
+  philter = callPackage ../tools/networking/philter { };
+
   pinentry = callPackage ../tools/misc/pinentry {
     inherit (gnome) glib gtk;
   };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to