2010-10-22 02:03:36 +04:00
|
|
|
x@{builderDefsPackage
|
2010-10-22 10:36:45 +04:00
|
|
|
, openssl, tdb, zlib, flex, bison
|
2010-10-22 02:03:36 +04: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";
|
2013-07-05 18:20:01 +04:00
|
|
|
version="1.7";
|
2010-10-22 02:03:36 +04:00
|
|
|
name="${baseName}-${version}";
|
2013-07-05 18:20:01 +04:00
|
|
|
url="mirror://sourceforge/${baseName}/${baseName}/${name}.tar.gz";
|
|
|
|
hash="0apg1jasn4m5j3vh0v9lr2l3lyzy35av1ylxr0wf8k0j9w4p8i28";
|
2010-10-22 02:03:36 +04:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
2013-07-05 18:20:01 +04:00
|
|
|
phaseNames = ["doConfigure" "fixInstall" "doMakeInstall"];
|
2010-10-22 02:03:36 +04:00
|
|
|
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) @ @'
|
2011-09-26 03:16:16 +04:00
|
|
|
sed -i */Makefile -i Makefile -i GNUmakefile -e 's@-I-@@g'
|
2010-10-22 02:03:36 +04: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
|
|
|
|
|