replace use of `which` with `command -v` in i3 scripts
commitec437bff924eebcad69fad9743297c256de3fc81
authorAnders Papitto <anderspapitto@gmail.com>
dateMon 16 Feb 2015, 08:08 (12 years ago)
parent08dfb4e
pkgs/applications/window-managers/i3/default.nix+3
@@ -37,6 +37,9 @@ stdenv.mkDerivation rec {
3737 wrapProgram "$out/bin/i3-save-tree" --prefix PERL5LIB ":" "$PERL5LIB"
3838 mkdir -p $out/man/man1
3939 cp man/*.1 $out/man/man1
40+ for program in $out/bin/i3-sensible-*; do
41+ sed -i 's/which/command -v/' $program
42+ done
4043 '';
4144
4245 meta = with stdenv.lib; {