wineStaging: add derivation

This commit is contained in:
Nikolay Amiantov 2015-04-07 01:13:56 +03:00
parent 9bf6a6d679
commit f6607ca4a5
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, wine, perl, autoconf, utillinux
, pulseaudio, libtxc_dxtn }:
let version = "1.7.40";
patch = fetchFromGitHub {
owner = "wine-compholio";
repo = "wine-staging";
rev = "v${version}";
sha256 = "0l14yy6wbvbs2xrnn9z3a35lbnpl8ibkmc0vh983fimf9nxckpan";
};
in assert (builtins.parseDrvName wine.name).version == version;
stdenv.lib.overrideDerivation wine (self: {
nativeBuildInputs = [ pulseaudio libtxc_dxtn ] ++ self.nativeBuildInputs;
buildInputs = [ perl utillinux autoconf ] ++ self.buildInputs;
name = "${self.name}-staging";
postPatch = self.postPatch or "" + ''
patchShebangs tools
cp -r ${patch}/patches .
chmod +w patches
cd patches
patchShebangs gitapply.sh
./patchinstall.sh DESTDIR=.. --all
cd ..
'';
})

View File

@ -14193,6 +14193,12 @@ let
wine = wineStable; wine = wineStable;
wineStaging = callPackage_i686 ../misc/emulators/wine/staging.nix {
wine = pkgsi686Linux.wineUnstable;
# Patent issues
libtxc_dxtn = pkgsi686Linux.libtxc_dxtn_s2tc;
};
winetricks = callPackage ../misc/emulators/wine/winetricks.nix { winetricks = callPackage ../misc/emulators/wine/winetricks.nix {
inherit (gnome2) zenity; inherit (gnome2) zenity;
}; };