winetricks: remove wine dependency

It shouldn't be tied to a particular Wine installation, it should use
the one in $PATH. Also massively reduces the closure size.
This commit is contained in:
Zane van Iperen 2021-11-07 10:00:47 +10:00
parent 64d85b687d
commit 68ca39a775
No known key found for this signature in database
GPG key ID: 68616B2D8AC4DCC5
3 changed files with 6 additions and 12 deletions

View file

@ -49,7 +49,7 @@ python3Packages.buildPythonApplication rec {
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
"--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs xdg-utils wine (winetricks.override { wine = wine; }) ]}"
"--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs xdg-utils wine winetricks ]}"
];
postPatch = ''

View file

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

View file

@ -30450,13 +30450,7 @@ with pkgs;
steam-acf = callPackage ../tools/games/steam-acf { };
protontricks = python3Packages.callPackage ../tools/package-management/protontricks {
winetricks = winetricks.override {
# Remove default build of wine to reduce closure size.
# Falls back to wine in PATH.
wine = null;
};
inherit steam-run yad;
inherit winetricks steam-run yad;
};
protonup = with python3Packages; toPythonApplication protonup;