1{
2 lib,
3 stdenv,
4 fetchurl,
5 flex,
6 bison,
7 sendmailPath ? "/run/wrappers/bin/sendmail",
8 versionCheckHook,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "petidomo";
13 version = "4.3";
14
15 src = fetchurl {
16 url = "mirror://sourceforge/petidomo/petidomo-${finalAttrs.version}.tar.gz";
17 hash = "sha256-ddNw0fq2MQLJd6YCmIkf9lvq9/Xscl94Ds8xR1hfjXQ=";
18 };
19
20 buildInputs = [
21 flex
22 bison
23 ];
24
25 configureFlags = [ "--with-mta=${sendmailPath}" ];
26
27 # test.c:43:11: error: implicit declaration of function 'gets'; did you mean 'fgets'?
28 env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
29
30 enableParallelBuilding = true;
31
32 doCheck = true;
33
34 doInstallCheck = true;
35 nativeInstallCheckInputs = [ versionCheckHook ];
36
37 meta = {
38 homepage = "https://petidomo.sourceforge.net/";
39 description = "Simple and easy to administer mailing list server";
40 license = lib.licenses.gpl3Plus;
41
42 platforms = lib.platforms.unix;
43 maintainers = [ lib.maintainers.peti ];
44 };
45})