restool: also depend on which

The ls-main script uses `which`. It also has /bin/sh as its shebang,
which means bash runs in Bourne-compatible mode and `which` is not a
builtin.

When the ls-* scripts are invoked from a user shell you don't notice
the problem, because /run/current-system/sw/bin/which is on $PATH, but
when they are invoked in a systemd service it would fail:

.../bin/ls-addni: line 1054: which: command not found

+2 -2
+2 -2
pkgs/os-specific/linux/restool/default.nix
··· 1 - { stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused }: 1 + { stdenv, lib, fetchgit, bash, coreutils, dtc, file, gawk, gnugrep, gnused, which }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "restool"; ··· 11 11 }; 12 12 13 13 nativeBuildInputs = [ file ]; 14 - buildInputs = [ bash coreutils dtc gawk gnugrep gnused ]; 14 + buildInputs = [ bash coreutils dtc gawk gnugrep gnused which ]; 15 15 16 16 makeFlags = [ 17 17 "prefix=$(out)"