2010-10-21 23:03:36 +01:00
|
|
|
x@{builderDefsPackage
|
2010-10-22 07:36:45 +01:00
|
|
|
, openssl, tdb, zlib, flex, bison
|
2010-10-21 23:03:36 +01:00
|
|
|
, ...}:
|
|
|
|
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) @ @'
|
2010-11-10 16:14:18 +00:00
|
|
|
sed -i */Makefile -i Makefile -e 's@-I-@@g'
|
2010-10-21 23:03:36 +01:00
|
|
|
'') ["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
|
|
|
|
|