nixpkgs-suyu/pkgs/servers/mail/postsrsd/default.nix
2020-12-08 03:10:37 +00:00

29 lines
741 B
Nix

{ stdenv, fetchFromGitHub, cmake, help2man }:
stdenv.mkDerivation rec {
pname = "postsrsd";
version = "1.9";
src = fetchFromGitHub {
owner = "roehling";
repo = "postsrsd";
rev = version;
sha256 = "0kmdm8nwb40cs4wvxv2kapjbiy4h6924zmx8h1kk7j3j9yjshl1p";
};
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 ];
};
}