2016-02-02 03:55:46 +00:00
|
|
|
{ stdenv, callPackage, wine, perl, which, coreutils, zenity, curl
|
2013-12-09 00:34:35 +00:00
|
|
|
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
|
2013-02-03 18:06:51 +00:00
|
|
|
|
2016-02-02 03:55:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "winetricks-${src.version}";
|
2013-02-03 18:06:51 +00:00
|
|
|
|
2016-02-02 03:55:46 +00:00
|
|
|
src = (callPackage ./sources.nix {}).winetricks;
|
2013-02-03 18:06:51 +00:00
|
|
|
|
|
|
|
buildInputs = [ perl which ];
|
|
|
|
|
2015-02-18 23:12:09 +00:00
|
|
|
# coreutils is for sha1sum
|
|
|
|
pathAdd = stdenv.lib.concatMapStringsSep ":" (x: x + "/bin")
|
|
|
|
[ wine perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash ];
|
2013-02-03 18:06:51 +00:00
|
|
|
|
2015-02-18 23:12:09 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2013-02-03 18:06:51 +00:00
|
|
|
|
2018-04-25 03:20:18 +00:00
|
|
|
doCheck = false; # requires "bashate"
|
|
|
|
|
2015-02-18 23:12:09 +00:00
|
|
|
postInstall = ''
|
|
|
|
sed -i \
|
|
|
|
-e '2i PATH="${pathAdd}:$PATH"' \
|
|
|
|
"$out/bin/winetricks"
|
|
|
|
'';
|
2013-02-03 18:06:51 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A script to install DLLs needed to work around problems in Wine";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2017-10-26 23:44:19 +00:00
|
|
|
homepage = https://github.com/Winetricks/winetricks;
|
2013-12-09 00:34:35 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2013-02-03 18:06:51 +00:00
|
|
|
};
|
|
|
|
}
|