3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/mail/postsrsd/default.nix

30 lines
739 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, help2man }:
2016-01-06 02:33:52 +00:00
2016-03-03 12:39:50 +00:00
stdenv.mkDerivation rec {
pname = "postsrsd";
2021-01-25 12:17:22 +00:00
version = "1.10";
2016-01-06 02:33:52 +00:00
src = fetchFromGitHub {
owner = "roehling";
repo = "postsrsd";
rev = version;
2021-01-25 12:17:22 +00:00
sha256 = "sha256-AqOHHOnGqOnIw5hPPiJjUJFiwngTux7gwn8qig0t7hs=";
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 ];
meta = with lib; {
homepage = "https://github.com/roehling/postsrsd";
2016-01-06 02:33:52 +00:00
description = "Postfix Sender Rewriting Scheme daemon";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
};
}