I will try to be concrete:
- on nixos stable 24.11
- refers to package gitwatch
- when on interactive shell
gitwatch
program runs OK - when invoked from userspaced systemd service unit it complains:
Dec 31 22:34:50 hosthost gitwatch[3688627]: /nix/store/vabiazsm1vk3mcjhfx7cq31p211icx7s-gitwatch/bin/.gitwatch-wrapped: line 225: sed: command not found
Dec 31 22:34:50 hosthost gitwatch[3688629]: /nix/store/vabiazsm1vk3mcjhfx7cq31p211icx7s-gitwatch/bin/.gitwatch-wrapped: line 273: grep: command not found
When looking at the gitwatch/package.nix
I assume that there should be two more packages added at the beginning and end of the file (besides git
, openssh
and inotify-tools
): gnugrep
and gnused
. I’d like to check if my assumptions are correct before I PR to the main tree.
I’m nixos novice, coming from Gentoo world. I don’t use flakes. I’ve tried the way described on the nixos.wiki, but it involved updating whole system and finally crashed due to some failed tests.
Is there any SIMPLE way to:
- make change in the package like I describe above,
- test if it helps (fixes the bug I found)
- if so, fork-modify-PR
?
I think about overlays but they don’t look SIMPLE.