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