2016-01-06 02:33:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, help2man }:
|
|
|
|
|
2016-03-03 12:39:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-06 02:33:52 +00:00
|
|
|
name = "postsrsd-${version}";
|
2016-03-03 12:39:50 +00:00
|
|
|
version = "1.4";
|
2016-01-06 02:33:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roehling";
|
|
|
|
repo = "postsrsd";
|
|
|
|
rev = version;
|
2016-03-03 12:39:50 +00:00
|
|
|
sha256 = "09yzb0fvnbfy534maqlqk79c41p1yz8r9f73n7bahm5lwd0livk9";
|
2016-01-06 02:33:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DGENERATE_SRS_SECRET=OFF" "-DINIT_FLAVOR=systemd" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i "s,\"/etc\",\"$out/etc\",g" CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake help2man ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/roehling/postsrsd;
|
2016-01-06 02:33:52 +00:00
|
|
|
description = "Postfix Sender Rewriting Scheme daemon";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|