blob: 176f4c6b39add6d8b7ae69ab649d32771d9f9118 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
cmake,
fetchFromGitHub,
lib,
libconfuse,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "postsrsd";
version = "2.3.0";
src = fetchFromGitHub {
owner = "roehling";
repo = "postsrsd";
tag = finalAttrs.version;
hash = "sha256-3taFk7LEsbk4HmW/llKrjCUTw4upoWpYbVFTHq7Q5t4=";
};
cmakeFlags = [
(lib.cmakeBool "GENERATE_SRS_SECRET" false)
(lib.cmakeBool "INSTALL_SYSTEMD_SERVICE" false)
(lib.cmakeFeature "FETCHCONTENT_TRY_FIND_PACKAGE_MODE" "ALWAYS")
];
nativeBuildInputs = [
cmake
];
buildInputs = [
libconfuse
];
meta = {
changelog = "https://github.com/roehling/postsrsd/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
homepage = "https://github.com/roehling/postsrsd";
description = "Postfix Sender Rewriting Scheme daemon";
mainProgram = "postsrsd";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.hexa ];
};
})
|