nixpkgs/pkgs/tools/filesystems/netatalk/default.nix
R. RyanTM b32c357ea9 netatalk: 3.1.11 -> 3.1.12
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/netatalk/versions
2018-12-25 05:46:49 -08:00

61 lines
1.6 KiB
Nix

{ fetchurl, stdenv, autoreconfHook, pkgconfig, perl, python
, db, libgcrypt, avahi, libiconv, pam, openssl, acl
, ed, glibc
}:
stdenv.mkDerivation rec{
name = "netatalk-3.1.12";
src = fetchurl {
url = "mirror://sourceforge/netatalk/netatalk/${name}.tar.bz2";
sha256 = "1ld5mnz88ixic21m6f0xcgf8v6qm08j6xabh1dzfj6x47lxghq0m";
};
patches = [
./no-suid.patch
./omitLocalstatedirCreation.patch
];
nativeBuildInputs = [ autoreconfHook pkgconfig perl python python.pkgs.wrapPython ];
buildInputs = [ db libgcrypt avahi libiconv pam openssl acl ];
configureFlags = [
"--with-bdb=${db.dev}"
"--with-ssl-dir=${openssl.dev}"
"--with-lockfile=/run/lock/netatalk"
"--localstatedir=/var/lib"
];
# Expose librpcsvc to the linker for afpd
# Fixes errors that showed up when closure-size was merged:
# afpd-nfsquota.o: In function `callaurpc':
# netatalk-3.1.7/etc/afpd/nfsquota.c:78: undefined reference to `xdr_getquota_args'
# netatalk-3.1.7/etc/afpd/nfsquota.c:78: undefined reference to `xdr_getquota_rslt'
postConfigure = ''
${ed}/bin/ed -v etc/afpd/Makefile << EOF
/^afpd_LDADD
/am__append_2
a
${glibc.static}/lib/librpcsvc.a \\
.
w
EOF
'';
postInstall = ''
buildPythonPath ${python.pkgs.dbus-python}
patchPythonScript $out/bin/afpstats
'';
enableParallelBuilding = true;
meta = {
description = "Apple Filing Protocol Server";
homepage = http://netatalk.sourceforge.net/;
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ jcumming ];
};
}