Commit cfcd72b9 authored by hideyosh1's avatar hideyosh1
Browse files

winetricks: add versionCheckHook

also add postInstall to replace PATH hacks
parent a2b61e7e
Loading
Loading
Loading
Loading
+4 −20
Original line number Diff line number Diff line
@@ -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 \