From cfcd72b91e43d6012cafa6d161a8bb3a75030dd7 Mon Sep 17 00:00:00 2001 From: hideyosh1 Date: Sun, 1 Feb 2026 13:12:42 -0600 Subject: [PATCH] winetricks: add versionCheckHook also add postInstall to replace PATH hacks --- .../emulators/wine/winetricks.nix | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/pkgs/applications/emulators/wine/winetricks.nix b/pkgs/applications/emulators/wine/winetricks.nix index 609aadfb0fc5..76a3eef7a497 100644 --- a/pkgs/applications/emulators/wine/winetricks.nix +++ b/pkgs/applications/emulators/wine/winetricks.nix @@ -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 \