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