winetricks: add versionCheckHook
also add postInstall to replace PATH hacks
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user