diff options
Diffstat (limited to 'pkgs/applications/emulators/wine/winetricks.nix')
-rw-r--r-- | pkgs/applications/emulators/wine/winetricks.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/wine/winetricks.nix b/pkgs/applications/emulators/wine/winetricks.nix new file mode 100644 index 00000000000..61ca6515c44 --- /dev/null +++ b/pkgs/applications/emulators/wine/winetricks.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, callPackage, perl, which, coreutils, zenity, curl +, cabextract, unzip, p7zip, gnused, gnugrep, bash } : + +stdenv.mkDerivation rec { + pname = "winetricks"; + version = src.version; + + src = (callPackage ./sources.nix {}).winetricks; + + buildInputs = [ perl which ]; + + # coreutils is for sha1sum + pathAdd = lib.makeBinPath [ + perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash + ]; + + 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"; + license = lib.licenses.lgpl21; + homepage = "https://github.com/Winetricks/winetricks"; + platforms = with lib.platforms; linux; + }; +} |