2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, callPackage, wine, perl, which, coreutils, zenity, curl
|
2020-04-24 23:36:52 +00:00
|
|
|
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "winetricks-${src.version}";
|
|
|
|
|
|
|
|
src = (callPackage ./sources.nix {}).winetricks;
|
|
|
|
|
|
|
|
buildInputs = [ perl which ];
|
|
|
|
|
|
|
|
# coreutils is for sha1sum
|
2021-01-17 00:15:33 +00:00
|
|
|
pathAdd = lib.concatMapStringsSep ":" (x: x + "/bin")
|
|
|
|
(lib.filter (x: x != null)
|
2021-01-05 17:05:55 +00:00
|
|
|
[ wine perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
doCheck = false; # requires "bashate"
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i \
|
|
|
|
-e '2i PATH="${pathAdd}:$PATH"' \
|
|
|
|
"$out/bin/winetricks"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A script to install DLLs needed to work around problems in Wine";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Winetricks/winetricks";
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|