2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, help2man }:
|
2016-01-06 02:33:52 +00:00
|
|
|
|
2016-03-03 12:39:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "postsrsd";
|
2022-08-15 13:34:23 +00:00
|
|
|
version = "1.12";
|
2016-01-06 02:33:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roehling";
|
|
|
|
repo = "postsrsd";
|
|
|
|
rev = version;
|
2022-08-15 13:34:23 +00:00
|
|
|
sha256 = "sha256-aSI9TR1wSyMA0SKkbavk+IugRfW4ZEgpzrNiXn0F5ak=";
|
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 ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/roehling/postsrsd";
|
2016-01-06 02:33:52 +00:00
|
|
|
description = "Postfix Sender Rewriting Scheme daemon";
|
|
|
|
license = licenses.gpl2;
|
2021-03-10 10:57:40 +00:00
|
|
|
platforms = platforms.all;
|
2016-01-06 02:33:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|