git.iko.soy/typeable/nixpkgs
on master help sign in
wine: add initial pulseaudio support
commit0ca96aa43c2d8c36ce6515a4ff407bc4417496fb authorLengyel Balázs <ikervagyok@gmail.com> dateThu 24 Dec 2015, 02:58 (11 years ago) parent1d132f3
4 files changed+13−1
pkgs/misc/emulators/wine/base.nix+4−1 pkgs/misc/emulators/wine/default.nix+2 pkgs/misc/emulators/wine/packages.nix+4 pkgs/top-level/all-packages.nix+3
pkgs/misc/emulators/wine/base.nix+4−1
@@ -1,5 +1,6 @@
11{ stdenv, lib, pkgArches,
22 name, version, src, monos, geckos, platforms,
3+ pulseaudioSupport,
34 buildScript ? null, configureFlags ? ""
45}:
56
@@ -19,7 +20,9 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
1920
2021 nativeBuildInputs = toBuildInputs pkgArches (pkgs: (with pkgs; [
2122 freetype fontconfig mesa mesa_noglu.osmesa libdrm libpng libjpeg openssl gnutls cups ncurses
22− ]) ++ (with pkgs.xorg; [
23+ ])
24+ ++ lib.optional pulseaudioSupport pkgs.libpulseaudio
25+ ++ (with pkgs.xorg; [
2326 xlibsWrapper libXi libXcursor libXinerama libXrandr libXrender libXxf86vm libXcomposite
2427 ]));
2528
pkgs/misc/emulators/wine/default.nix+2
@@ -9,11 +9,13 @@
99{ lib, pkgs, system, callPackage,
1010 wineRelease ? "stable",
1111 wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"),
12+ pulseaudioSupport ? false,
1213 libtxc_dxtn_Name ? "libtxc_dxtn_s2tc" }:
1314
1415let wine-build = build: release:
1516 lib.getAttr build (callPackage ./packages.nix {
1617 wineRelease = release;
18+ inherit pulseaudioSupport;
1719 });
1820
1921in if wineRelease == "staging" then
pkgs/misc/emulators/wine/packages.nix+4
@@ -1,4 +1,5 @@
11{ system, stdenv, stdenv_32bit, lib, pkgs, pkgsi686Linux, fetchurl,
2+ pulseaudioSupport,
23 wineRelease ? "stable"
34}:
45
@@ -30,6 +31,7 @@ in {
3031 name = "wine-${version}";
3132 inherit (sources) version src;
3233 inherit (pkgsi686Linux) lib stdenv;
34+ inherit pulseaudioSupport;
3335 pkgArches = [ pkgsi686Linux ];
3436 geckos = with sources; [ wineGecko32 ];
3537 monos = with sources; [ wineMono ];
@@ -39,6 +41,7 @@ in {
3941 name = "wine64-${version}";
4042 inherit (sources) version src;
4143 inherit lib stdenv;
44+ inherit pulseaudioSupport;
4245 pkgArches = [ pkgs ];
4346 geckos = with sources; [ wineGecko64 ];
4447 monos = with sources; [ wineMono ];
@@ -50,6 +53,7 @@ in {
5053 inherit (sources) version src;
5154 inherit lib;
5255 stdenv = stdenv_32bit;
56+ inherit pulseaudioSupport;
5357 pkgArches = [ pkgs pkgsi686Linux ];
5458 geckos = with sources; [ wineGecko32 wineGecko64 ];
5559 monos = with sources; [ wineMono ];
pkgs/top-level/all-packages.nix+3
@@ -15691,6 +15691,9 @@ let
1569115691 wine = callPackage ../misc/emulators/wine {
1569215692 wineRelease = config.wine.release or "stable";
1569315693 wineBuild = config.wine.build or "wine32";
15694+ pulseaudioSupport = if (config ? pulseaudio)
15695+ then config.pulseaudio
15696+ else stdenv.isLinux;
1569415697 };
1569515698 wineStable = wine.override { wineRelease = "stable"; };
1569615699 wineUnstable = lowPrio (wine.override { wineRelease = "unstable"; });