nixpkgs/pkgs/servers/mail/postsrsd/default.nix

30 lines
749 B
Nix
Raw Normal View History

2016-01-06 03:33:52 +01:00
{ stdenv, fetchFromGitHub, cmake, help2man }:
2016-03-03 13:39:50 +01:00
stdenv.mkDerivation rec {
2016-01-06 03:33:52 +01:00
name = "postsrsd-${version}";
version = "1.6";
2016-01-06 03:33:52 +01:00
src = fetchFromGitHub {
owner = "roehling";
repo = "postsrsd";
rev = version;
sha256 = "1dza22f0zlzsvr2dpnmsg8m8mj9rgdk0pzm1wvxrcfwyi8899ggm";
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; {
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 ];
};
}