diff --git a/pkgs/servers/mail/postsrsd/default.nix b/pkgs/servers/mail/postsrsd/default.nix new file mode 100644 index 000000000000..18c21ffc8154 --- /dev/null +++ b/pkgs/servers/mail/postsrsd/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, cmake, help2man }: + +let + version = "1.3"; + +in stdenv.mkDerivation { + name = "postsrsd-${version}"; + + src = fetchFromGitHub { + owner = "roehling"; + repo = "postsrsd"; + rev = version; + sha256 = "1z89qh2bnypgb4i2vs0zdzzpqlf445jixwa1acd955hryww50npv"; + }; + + 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; { + homepage = "https://github.com/roehling/postsrsd"; + description = "Postfix Sender Rewriting Scheme daemon"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ abbradar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 252b567b7e6c..670dc1d0a7d5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9338,6 +9338,8 @@ let postfix30 = callPackage ../servers/mail/postfix/3.0.nix { }; postfix = postfix30; + postsrsd = callPackage ../servers/mail/postsrsd { }; + pshs = callPackage ../servers/http/pshs { }; libpulseaudio = callPackage ../servers/pulseaudio { libOnly = true; };