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:
parent
64d85b687d
commit
68ca39a775
3 changed files with 6 additions and 12 deletions
|
@ -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 = ''
|
||||
|
|
|
@ -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)" ];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue