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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
{
lib,
stdenv,
fetchurl,
acl,
autoreconfHook,
avahi,
db,
libevent,
libgcrypt,
libiconv,
openssl,
pam,
perl,
pkg-config,
meson,
ninja,
file,
cracklib,
cups,
libtirpc,
openldap,
glib,
dbus,
docbook-xsl-nons,
cmark-gfm,
iniparser,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "netatalk";
version = "4.2.0";
src = fetchurl {
url = "mirror://sourceforge/netatalk/netatalk/netatalk-${finalAttrs.version}.tar.xz";
hash = "sha256-doqRAU4pjcHRTvKOvjMN2tSZKOPDTzBzU7i90xf1ClI=";
};
patches = [
./0000-no-install-under-usr-cupsd.patch
./0001-no-install-under-var-CNID.patch
];
nativeBuildInputs = [
pkg-config
meson
ninja
file
];
buildInputs = [
acl
avahi
db
libevent
libgcrypt
libiconv
openssl
pam
cracklib
cups
libtirpc
openldap
glib
perl
dbus
docbook-xsl-nons
cmark-gfm
iniparser
];
mesonFlags = [
"-Dwith-appletalk=true"
"-Dwith-statedir-path=/var/lib"
"-Dwith-bdb-path=${db.out}"
"-Dwith-bdb-include-path=${db.dev}/include"
"-Dwith-install-hooks=false"
"-Dwith-init-hooks=false"
"-Dwith-lockfile-path=/run/lock/"
"-Dwith-cracklib=true"
"-Dwith-cracklib-path=${cracklib.out}"
"-Dwith-docbook-path=${docbook-xsl-nons.out}/share/xml/docbook-xsl-nons/"
];
enableParallelBuilding = true;
meta = with lib; {
description = "Apple Filing Protocol Server";
homepage = "https://netatalk.io/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ jcumming ];
};
})
|