2015-03-29 03:04:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, 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
|
|
|
|
2015-05-18 19:29:46 +01:00
|
|
|
let v = (import ./versions.nix).winetricks;
|
2015-03-29 03:04:07 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2015-05-18 19:29:46 +01:00
|
|
|
name = "winetricks-${v.version}";
|
2013-02-03 18:06:51 +00:00
|
|
|
|
2015-03-29 03:04:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Winetricks";
|
|
|
|
repo = "winetricks";
|
2015-05-18 19:29:46 +01:00
|
|
|
rev = v.version;
|
|
|
|
sha256 = v.sha256;
|
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
|
|
|
|
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 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2013-02-03 18:06:51 +00:00
|
|
|
homepage = http://code.google.com/p/winetricks/;
|
2013-12-09 00:34:35 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2013-02-03 18:06:51 +00:00
|
|
|
};
|
|
|
|
}
|