1 { lib, stdenv, fetchFromGitHub, cmake, help2man }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-aSI9TR1wSyMA0SKkbavk+IugRfW4ZEgpzrNiXn0F5ak=";
14 cmakeFlags = [ "-DGENERATE_SRS_SECRET=OFF" "-DINIT_FLAVOR=systemd" ];
17 sed -i "s,\"/etc\",\"$out/etc\",g" CMakeLists.txt
20 nativeBuildInputs = [ cmake help2man ];
23 homepage = "https://github.com/roehling/postsrsd";
24 description = "Postfix Sender Rewriting Scheme daemon";
25 mainProgram = "postsrsd";
26 license = licenses.gpl2;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ abbradar ];