nixpkgs/pkgs/misc/emulators/wine/winetricks.nix

33 lines
910 B
Nix
Raw Normal View History

2021-01-15 16:21:58 +03:00
{ lib, stdenv, callPackage, wine, perl, which, coreutils, zenity, curl
, cabextract, unzip, p7zip, gnused, gnugrep, bash } :
stdenv.mkDerivation rec {
name = "winetricks-${src.version}";
src = (callPackage ./sources.nix {}).winetricks;
buildInputs = [ perl which ];
2015-02-19 02:12:09 +03:00
# coreutils is for sha1sum
2021-01-15 16:21:58 +03:00
pathAdd = lib.concatMapStringsSep ":" (x: x + "/bin")
(lib.filter (x: x != null)
[ wine perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash ]);
2015-02-19 02:12:09 +03:00
makeFlags = [ "PREFIX=$(out)" ];
doCheck = false; # requires "bashate"
2015-02-19 02:12:09 +03:00
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-15 16:21:58 +03:00
license = lib.licenses.lgpl21;
homepage = "https://github.com/Winetricks/winetricks";
2021-01-15 16:21:58 +03:00
platforms = with lib.platforms; linux;
};
}