winetricks: add versionCheckHook

also add postInstall to replace PATH hacks
This commit is contained in:
hideyosh1
2026-02-01 13:30:06 -06:00
parent a2b61e7e03
commit cfcd72b91e
@@ -11,13 +11,13 @@
gnugrep,
gnused,
gnutar,
unrar-free,
gzip,
p7zip,
perl,
unzip,
which,
zenity,
unrar-free,
versionCheckHook,
}:
@@ -33,29 +33,13 @@ stdenv.mkDerivation rec {
makeWrapper
];
# coreutils is for sha1sum
pathAdd = lib.makeBinPath [
perl
which
coreutils
zenity
curl
cabextract
unzip
p7zip
gnused
gnugrep
bash
gawk
gnutar
gzip
unrar-free
];
makeFlags = [ "PREFIX=$(out)" ];
doCheck = false; # requires "bashate"
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
postPatch = ''
patchShebangs src/winetricks
substituteInPlace src/winetricks \