git-sync: only include inotify-tools on linux

This commit is contained in:
Aaron Bieber 2022-08-28 21:34:25 -06:00
parent ab0f52080f
commit 4cb85d5489
No known key found for this signature in database

View file

@ -21,13 +21,12 @@ stdenv.mkDerivation rec {
cp -a contrib/git-* $out/bin/
'';
wrapperPath = with lib; makeBinPath [
inotify-tools
wrapperPath = with lib; makeBinPath ([
coreutils
git
gnugrep
gnused
];
] ++ lib.optionals stdenv.isLinux [ inotify-tools ]);
postFixup = ''
wrap_path="${wrapperPath}":$out/bin