-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netatalk: 3.1.7 -> 3.1.11 #31377
netatalk: 3.1.7 -> 3.1.11 #31377
Conversation
This is fine for optional and almost useless programs, otherwise just add You can also add yourself to |
Netatalk 3.1.11 is the latest stable release. There is also a nasty bug with netatalk < 3.1.11 (https://sourceforge.net/p/netatalk/bugs/636/) that prevents using netatalk shares for time machine backups.
Adds `perl` and `python2` to nativeBuildInputs, to make the included perl and python utility script `#!` lines point at the right place.
Okay, so I've added In case it wasn't obvious though this is my first nixpkgs PR, and I feel like I'm a bit out of my depth. I'm not sure exactly how to fix |
Packages built with {
# Import wrapPythonPrograms function.
nativeBuildInputs = [ pythonPackages.wrapPython ];
# Export pythonPath.
pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify mutagen ];
# Wrap all python programs in $out/bin.
postInstall = "wrapPythonPrograms";
} Here I've chosen to be more specific, and instead of wrapping all python programs I only add the path to dbus into {
postInstall = ''
buildPythonPath ${python.pkgs.dbus-python}
patchPythonScript $out/bin/afpstats
'';
}
Usually we say just |
Thank you a lot for all the help and explanation, it all seems pretty reasonable and clear. I feel like instead of helping all I did was trigger the people who actually know what they're doing to come fix things for me, but I appreciate it all the same. I'm pretty sure I'm actually going to stick with nixos for real this time, so hopefully I'll get better at this as time goes on :) |
You are welcome! |
Motivation for this change
Netatalk 3.1.11 is the latest stable release. There is also a nasty bug
with netatalk < 3.1.11 (https://sourceforge.net/p/netatalk/bugs/636/)
that prevents using netatalk shares for time machine backups.
I've tested all the executable files in result/bin, and there are script files there that depend on python and perl using /usr/bin/env. I'm not sure if that's a problem or not, but it is the same situation as before this patch.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)