git.iko.soy/typeable/nixpkgs
on master help sign in
replace use of `which` with `command -v` in i3 scripts
ec437bfAnders Papitto
pkgs/applications/window-managers/i3/default.nix+3
@@ -37,6 +37,9 @@ stdenv.mkDerivation rec {
37 wrapProgram "$out/bin/i3-save-tree" --prefix PERL5LIB ":" "$PERL5LIB"
37 wrapProgram "$out/bin/i3-save-tree" --prefix PERL5LIB ":" "$PERL5LIB"
38 mkdir -p $out/man/man1
38 mkdir -p $out/man/man1
39 cp man/*.1 $out/man/man1
39 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
40 '';
43 '';
41
44
42 meta = with stdenv.lib; {
45 meta = with stdenv.lib; {