mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
4ce954d02e
In order to update wine packages more easily, the source derivations are collected into a single sources.nix, so hashes can be updated like `nix-prefetch-url pkgs/misc/emulators/wine/sources.nix -A stable`
30 lines
857 B
Nix
30 lines
857 B
Nix
{ 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 ];
|
|
|
|
# coreutils is for sha1sum
|
|
pathAdd = stdenv.lib.concatMapStringsSep ":" (x: x + "/bin")
|
|
[ wine perl which coreutils zenity curl cabextract unzip p7zip gnused gnugrep bash ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
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 = http://code.google.com/p/winetricks/;
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
|
};
|
|
}
|