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

31 lines
911 B
Nix
Raw Normal View History

{ 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-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 ];
2015-02-18 23:12:09 +00:00
makeFlags = [ "PREFIX=$(out)" ];
2015-02-18 23:12:09 +00: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";
license = stdenv.lib.licenses.lgpl21;
homepage = https://github.com/Winetricks/winetricks;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
platforms = with stdenv.lib.platforms; linux;
};
}