nixpkgs/pkgs/tools/filesystems/netatalk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-15 16:47:51 +01:00
{ lib
, stdenv
, fetchurl
, acl
, autoreconfHook
, avahi
, db
, libevent
, libgcrypt
, libiconv
, openssl
, pam
, perl
, pkg-config
, python3
}:
2013-09-16 07:54:57 +02:00
2022-11-15 16:47:51 +01:00
stdenv.mkDerivation (finalAttrs: {
pname = "netatalk";
2023-10-11 16:22:00 +02:00
version = "3.1.18";
2013-09-16 07:54:57 +02:00
src = fetchurl {
2022-11-15 16:47:51 +01:00
url = "mirror://sourceforge/netatalk/netatalk/netatalk-${finalAttrs.version}.tar.bz2";
2023-10-11 16:22:00 +02:00
hash = "sha256-htIJ3Hd2pLoXhFFk0uN2pGnO43aiexiuMYmOP0ukFlU=";
2013-09-16 07:54:57 +02:00
};
2017-11-09 05:52:23 +01:00
patches = [
2022-11-15 16:47:51 +01:00
./000-no-suid.patch
./001-omit-localstatedir-creation.patch
2017-11-09 05:52:23 +01:00
];
2022-11-15 16:47:51 +01:00
nativeBuildInputs = [
autoreconfHook
pkg-config
perl
python3
python3.pkgs.wrapPython
];
2017-11-09 05:52:23 +01:00
2022-11-15 16:47:51 +01:00
buildInputs = [
acl
avahi
db
libevent
libgcrypt
libiconv
openssl
pam
];
2013-09-16 07:54:57 +02:00
configureFlags = [
"--with-bdb=${db.dev}"
2017-11-09 05:52:23 +01:00
"--with-ssl-dir=${openssl.dev}"
"--with-lockfile=/run/lock/netatalk"
"--localstatedir=/var/lib"
2013-09-16 07:54:57 +02:00
];
2017-11-09 05:52:23 +01:00
postInstall = ''
sed -i -e "s%/usr/bin/env python%${python3}/bin/python3%" $out/bin/afpstats
2021-11-28 20:04:05 +01:00
buildPythonPath ${python3.pkgs.dbus-python}
2017-11-09 05:52:23 +01:00
patchPythonScript $out/bin/afpstats
'';
enableParallelBuilding = true;
2013-09-16 07:54:57 +02:00
2022-11-15 16:47:51 +01:00
meta = with lib; {
description = "Apple Filing Protocol Server";
homepage = "http://netatalk.sourceforge.net/";
2022-11-15 16:47:51 +01:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ jcumming ];
2013-09-16 07:54:57 +02:00
};
2022-11-15 16:47:51 +01:00
})