2014-11-07 09:05:07 +00:00
|
|
|
{ stdenv, fetchurl
|
2010-10-22 07:36:45 +01:00
|
|
|
, openssl, tdb, zlib, flex, bison
|
2014-11-07 09:05:07 +00:00
|
|
|
}:
|
2010-10-21 23:03:36 +01:00
|
|
|
let
|
2014-11-07 09:05:07 +00:00
|
|
|
buildInputs = [ openssl tdb zlib flex bison ];
|
2010-10-21 23:03:36 +01:00
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="fdm";
|
2014-12-31 18:20:39 +00:00
|
|
|
version = "1.8";
|
2010-10-21 23:03:36 +01:00
|
|
|
name="${baseName}-${version}";
|
2013-07-05 15:20:01 +01:00
|
|
|
url="mirror://sourceforge/${baseName}/${baseName}/${name}.tar.gz";
|
2014-12-31 18:20:39 +00:00
|
|
|
sha256 = "0hi39f31ipv8f9wxb41pajvl61w6vaapl39wq8v1kl9c7q6h0k2g";
|
2010-10-21 23:03:36 +01:00
|
|
|
};
|
|
|
|
in
|
2014-11-07 09:05:07 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (sourceInfo) url sha256;
|
2010-10-21 23:03:36 +01: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 23:03:36 +01: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-26 00:16:16 +01:00
|
|
|
sed -i */Makefile -i Makefile -i GNUmakefile -e 's@-I-@@g'
|
2014-11-07 09:05:07 +00:00
|
|
|
'';
|
2010-10-21 23:03:36 +01: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 23:03:36 +01:00
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2014-11-07 09:05:07 +00:00
|
|
|
platforms = with stdenv.lib.platforms;
|
2010-10-21 23:03:36 +01:00
|
|
|
linux;
|
2014-11-07 09:05:07 +00:00
|
|
|
homepage = "http://fdm.sourceforge.net/";
|
|
|
|
inherit (sourceInfo) version;
|
|
|
|
updateWalker = true;
|
2010-10-21 23:03:36 +01:00
|
|
|
};
|
2014-11-07 09:05:07 +00:00
|
|
|
}
|