winetricks: 20250102 -> 20260125 (#484159)

This commit is contained in:
Anthony
2026-02-06 20:02:15 +00:00
committed by GitHub
2 changed files with 50 additions and 34 deletions
+2 -2
View File
@@ -254,8 +254,8 @@ rec {
winetricks = fetchFromGitHub rec {
# https://github.com/Winetricks/winetricks/releases
version = "20250102";
hash = "sha256-Km2vVTYsLs091cjmNTW8Kqku3vdsEA0imTtZfqZWDQo=";
version = "20260125";
hash = "sha256-uIBVESebsH7rXnxWd/qlrZxcG7Y486PctHzcLz29HDk=";
owner = "Winetricks";
repo = "winetricks";
rev = version;
+48 -32
View File
@@ -2,20 +2,23 @@
lib,
stdenv,
callPackage,
perl,
which,
coreutils,
zenity,
curl,
cabextract,
unzip,
p7zip,
gnused,
gnugrep,
makeWrapper,
bash,
cabextract,
coreutils,
curl,
gawk,
gnugrep,
gnused,
gnutar,
gzip,
p7zip,
perl,
unzip,
which,
zenity,
unrar-free,
versionCheckHook,
}:
stdenv.mkDerivation rec {
@@ -27,36 +30,49 @@ stdenv.mkDerivation rec {
buildInputs = [
perl
which
];
# coreutils is for sha1sum
pathAdd = lib.makeBinPath [
perl
which
coreutils
zenity
curl
cabextract
unzip
p7zip
gnused
gnugrep
bash
gawk
gnutar
gzip
makeWrapper
];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = false; # requires "bashate"
postInstall = ''
sed -i \
-e '2i PATH="${pathAdd}:$PATH"' \
"$out/bin/winetricks"
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
postPatch = ''
patchShebangs src/winetricks
substituteInPlace src/winetricks \
--replace-fail 'command -v unrar' 'command -v unrar-free' \
--replace-fail 'w_try unrar' 'w_try unrar-free'
'';
postInstall =
let
runtimeDependencies = [
bash
cabextract
coreutils
curl
gawk
gnugrep
gnused
gnutar
gzip
p7zip
perl
unrar-free
unzip
which
zenity
];
in
''
wrapProgram $out/bin/winetricks \
--prefix PATH : "${lib.makeBinPath runtimeDependencies}" \
--set WINETRICKS_LATEST_VERSION_CHECK "disabled"
'';
passthru = {
inherit (src) updateScript;
};