From fb8e4c950f0a07dbe545a59ec16e4c37492de24d Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 21 Oct 2010 22:03:36 +0000 Subject: [PATCH] Adding fdm svn path=/nixpkgs/trunk/; revision=24409 --- pkgs/tools/networking/fdm/default.nix | 53 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/tools/networking/fdm/default.nix diff --git a/pkgs/tools/networking/fdm/default.nix b/pkgs/tools/networking/fdm/default.nix new file mode 100644 index 00000000000..7c4320552f3 --- /dev/null +++ b/pkgs/tools/networking/fdm/default.nix @@ -0,0 +1,53 @@ +x@{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 + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fb72f78e358..6480db8d95e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -598,6 +598,8 @@ let fdisk = callPackage ../tools/system/fdisk { }; + fdm = callPackage ../tools/networking/fdm {}; + figlet = callPackage ../tools/misc/figlet { }; file = callPackage ../tools/misc/file { };