Files
nixpkgs/pkgs/by-name/po/postsrsd/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
916 B
Nix

{
lib,
libconfuse,
stdenv,
fetchFromGitHub,
cmake,
help2man,
}:
stdenv.mkDerivation rec {
pname = "postsrsd";
version = "2.0.11";
src = fetchFromGitHub {
owner = "roehling";
repo = "postsrsd";
rev = version;
sha256 = "sha256-Q7tXCd2Mz3WIGnIrbb8mfgT7fcmtVS4EtF0ztYmEsmM=";
};
cmakeFlags = [
"-DGENERATE_SRS_SECRET=OFF"
"-DINIT_FLAVOR=systemd"
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS"
"-DINSTALL_SYSTEMD_SERVICE=OFF"
];
preConfigure = ''
sed -i "s,\"/etc\",\"$out/etc\",g" CMakeLists.txt
'';
nativeBuildInputs = [
cmake
help2man
];
buildInputs = [
libconfuse
];
meta = with lib; {
homepage = "https://github.com/roehling/postsrsd";
description = "Postfix Sender Rewriting Scheme daemon";
mainProgram = "postsrsd";
license = licenses.gpl2Plus;
platforms = platforms.all;
maintainers = [ ];
};
}