2016-01-06 03:33:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, help2man }:
|
|
|
|
|
2016-03-03 13:39:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "postsrsd";
|
2020-12-08 04:10:37 +01:00
|
|
|
version = "1.9";
|
2016-01-06 03:33:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roehling";
|
|
|
|
repo = "postsrsd";
|
|
|
|
rev = version;
|
2020-12-08 04:10:37 +01:00
|
|
|
sha256 = "0kmdm8nwb40cs4wvxv2kapjbiy4h6924zmx8h1kk7j3j9yjshl1p";
|
2016-01-06 03:33:52 +01: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; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/roehling/postsrsd";
|
2016-01-06 03:33:52 +01:00
|
|
|
description = "Postfix Sender Rewriting Scheme daemon";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|