2014-11-07 09:05:07 +00:00
|
|
|
{ stdenv, fetchurl
|
2010-10-22 06:36:45 +00:00
|
|
|
, openssl, tdb, zlib, flex, bison
|
2014-11-07 09:05:07 +00:00
|
|
|
}:
|
2010-10-21 22:03:36 +00:00
|
|
|
let
|
2014-11-07 09:05:07 +00:00
|
|
|
buildInputs = [ openssl tdb zlib flex bison ];
|
2010-10-21 22:03:36 +00:00
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="fdm";
|
2014-11-07 09:05:07 +00:00
|
|
|
version = "1.7";
|
2010-10-21 22:03:36 +00:00
|
|
|
name="${baseName}-${version}";
|
2013-07-05 14:20:01 +00:00
|
|
|
url="mirror://sourceforge/${baseName}/${baseName}/${name}.tar.gz";
|
2014-11-07 09:05:07 +00:00
|
|
|
sha256 = "0apg1jasn4m5j3vh0v9lr2l3lyzy35av1ylxr0wf8k0j9w4p8i28";
|
2010-10-21 22:03:36 +00:00
|
|
|
};
|
|
|
|
in
|
2014-11-07 09:05:07 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (sourceInfo) url sha256;
|
2010-10-21 22:03:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
2014-11-07 09:05:07 +00:00
|
|
|
preBuild = ''
|
|
|
|
export makeFlags="$makeFlags PREFIX=$out"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Dbool=int"
|
|
|
|
|
2010-10-21 22:03:36 +00:00
|
|
|
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-25 23:16:16 +00:00
|
|
|
sed -i */Makefile -i Makefile -i GNUmakefile -e 's@-I-@@g'
|
2014-11-07 09:05:07 +00:00
|
|
|
'';
|
2010-10-21 22:03:36 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mail fetching and delivery tool - should do the job of getmail and procmail";
|
2014-11-07 09:05:07 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers;
|
2010-10-21 22:03:36 +00:00
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2014-11-07 09:05:07 +00:00
|
|
|
platforms = with stdenv.lib.platforms;
|
2010-10-21 22:03:36 +00:00
|
|
|
linux;
|
2014-11-07 09:05:07 +00:00
|
|
|
homepage = "http://fdm.sourceforge.net/";
|
|
|
|
inherit (sourceInfo) version;
|
|
|
|
updateWalker = true;
|
2010-10-21 22:03:36 +00:00
|
|
|
};
|
2014-11-07 09:05:07 +00:00
|
|
|
}
|