Author: raskin
Date: Thu Oct 21 22:03:36 2010
New Revision: 24409
URL: https://svn.nixos.org/websvn/nix/?rev=24409&sc=1
Log:
Adding fdm
Added:
nixpkgs/trunk/pkgs/tools/networking/fdm/
nixpkgs/trunk/pkgs/tools/networking/fdm/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/tools/networking/fdm/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/networking/fdm/default.nix Thu Oct 21 22:03:36
2010 (r24409)
@@ -0,0 +1,53 @@
+...@{builderdefspackage
+ , openssl, samba, zlib, flex, bison
+ , ...}:
+builderDefsPackage
+(a :
+let
+ helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
+ [];
+
+ buildInputs = map (n: builtins.getAttr n x)
+ (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+ sourceInfo = rec {
+ baseName="fdm";
+ version="1.6";
+ name="${baseName}-${version}";
+ url="http://downloads.sourceforge.net/${baseName}/${name}.tar.gz";
+ hash="01ipxay4rv52ra2zzybf92x6n1hyklib94ncsg04k3rp4w5a8sbj";
+ };
+in
+rec {
+ src = a.fetchurl {
+ url = sourceInfo.url;
+ sha256 = sourceInfo.hash;
+ };
+
+ inherit (sourceInfo) name version;
+ inherit buildInputs;
+
+ phaseNames = ["fixInstall" "doMakeInstall"];
+ makeFlags = ["PREFIX=$out"];
+ fixInstall = a.fullDepEntry (''
+ sed -i */Makefile -i Makefile -e 's@ -g bin @ @'
+ sed -i */Makefile -i Makefile -e 's@ -o root @ @'
+ sed -i GNUmakefile -e 's@ -g $(BIN_OWNER) @ @'
+ sed -i GNUmakefile -e 's@ -o $(BIN_GROUP) @ @'
+ '') ["minInit" "doUnpack"];
+
+ meta = {
+ description = "Mail fetching and delivery tool - should do the job of
getmail and procmail";
+ maintainers = with a.lib.maintainers;
+ [
+ raskin
+ ];
+ platforms = with a.lib.platforms;
+ linux;
+ };
+ passthru = {
+ updateInfo = {
+ downloadPage = "http://fdm.sourceforge.net/";
+ };
+ };
+}) x
+
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Thu Oct 21 15:39:58
2010 (r24408)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Thu Oct 21 22:03:36
2010 (r24409)
@@ -598,6 +598,8 @@
fdisk = callPackage ../tools/system/fdisk { };
+ fdm = callPackage ../tools/networking/fdm {};
+
figlet = callPackage ../tools/misc/figlet { };
file = callPackage ../tools/misc/file { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits