summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-04-07 01:13:56 +0300
committerNikolay Amiantov <ab@fmap.me>2015-04-23 21:00:42 +0300
commitf6607ca4a5a835c6e612d1cdf72ad687f4e1101d (patch)
treee6755af35af2a5b464bb94edde75b9af97cfb3b0 /pkgs
parent9bf6a6d67997a637430f2eee7b683868cb02eb8a (diff)
wineStaging: add derivation
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/misc/emulators/wine/staging.nix29
-rw-r--r--pkgs/top-level/all-packages.nix6
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/wine/staging.nix b/pkgs/misc/emulators/wine/staging.nix
new file mode 100644
index 000000000000..2aa588592ac1
--- /dev/null
+++ b/pkgs/misc/emulators/wine/staging.nix
@@ -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 ..
+ '';
+})
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 3bfa25de6f3f..3c2d33246504 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -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;
};