mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
30 lines
739 B
Nix
30 lines
739 B
Nix
{ stdenv, fetchFromGitHub, cmake, help2man }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "postsrsd";
|
|
version = "1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "roehling";
|
|
repo = "postsrsd";
|
|
rev = version;
|
|
sha256 = "1dza22f0zlzsvr2dpnmsg8m8mj9rgdk0pzm1wvxrcfwyi8899ggm";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|