winetricks: skip null dependencies

This can be used to reduce closure size when a wrapper uses a custom
WINE at runtime, or a different wine in PATH.

See pkgs/tools/package-management/protontricks/default.nix
This commit is contained in:
Kira Bruneau 2020-12-13 10:11:45 -05:00
parent 3054057943
commit 30ec971ceb

View File

@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
# coreutils is for sha1sum
pathAdd = stdenv.lib.concatMapStringsSep ":" (x: x + "/bin")
[ wine perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash ];
(stdenv.lib.filter (x: x != null)
[ wine perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash ]);
makeFlags = [ "PREFIX=$(out)" ];