Author: raskin
Date: Mon Oct 18 09:43:17 2010
New Revision: 24337
URL: https://svn.nixos.org/websvn/nix/?rev=24337&sc=1

Log:
Add ripmime - MIME attachment extractor tool

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

Added: nixpkgs/trunk/pkgs/tools/networking/ripmime/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/networking/ripmime/default.nix     Mon Oct 18 
09:43:17 2010        (r24337)
@@ -0,0 +1,51 @@
+...@{builderdefspackage
+  
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="ripmime";
+    version="1.4.0.9";
+    name="${baseName}-${version}";
+    url="http://www.pldaniels.com/${baseName}/${name}.tar.gz";;
+    hash="15c48n8n8qavdigw5qycnwp6gys9dv3mgk18ylf5hd4491nnnrhz";
+  };
+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 = ["fixTarget" "doMakeInstall"];
+  fixTarget = a.fullDepEntry (''
+    sed -i Makefile -e "s...@location=.*@LOCATION=$out@"
+    ensureDir "$out/bin" "$out/man/man1"
+  '') ["doUnpack" "minInit" "defEnsureDir"];
+      
+  meta = {
+    description = "Attachment extractor for MIME messages";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://www.pldaniels.com/ripmime/";;
+    };
+  };
+}) x
+

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Mon Oct 18 05:33:31 
2010        (r24336)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Mon Oct 18 09:43:17 
2010        (r24337)
@@ -1096,6 +1096,8 @@
     python=python;  };
   */
 
+  ripmime = callPackage ../tools/networking/ripmime {};
+
   rsnapshot = callPackage ../tools/backup/rsnapshot {
 
     # For the `logger' command, we can use either `utillinux' or
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to