wineStaging: add derivation
This commit is contained in:
parent
9bf6a6d679
commit
f6607ca4a5
29
pkgs/misc/emulators/wine/staging.nix
Normal file
29
pkgs/misc/emulators/wine/staging.nix
Normal 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 ..
|
||||
'';
|
||||
})
|
@ -14193,6 +14193,12 @@ let
|
||||
|
||||
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 {
|
||||
inherit (gnome2) zenity;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user