git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #11927: wine: add pulseaudio support
commiteeb311960492d46bc0896101e41b3c8172e8c72c authorVladimír Čunát <vcunat@gmail.com> dateTue 5 Jan 2016, 09:25 (11 years ago) parenta133ef932fa84d
5 files changed+12−2
pkgs/misc/emulators/wine/base.nix+4−1 pkgs/misc/emulators/wine/default.nix+2 pkgs/misc/emulators/wine/packages.nix+4 pkgs/misc/emulators/wine/staging.nix+1−1 pkgs/top-level/all-packages.nix+1
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/misc/emulators/wine/staging.nix+1−1
@@ -15,7 +15,7 @@ let v = (import ./versions.nix).staging;
1515in assert (builtins.parseDrvName wineUnstable.name).version == version;
1616
1717stdenv.lib.overrideDerivation wineUnstable (self: {
18− nativeBuildInputs = build-inputs [ "libpulseaudio" libtxc_dxtn_Name ] self.nativeBuildInputs;
18+ nativeBuildInputs = build-inputs [ libtxc_dxtn_Name ] self.nativeBuildInputs;
1919 buildInputs = build-inputs [ "perl" "utillinux" "autoconf" ] self.buildInputs;
2020
2121 name = "${self.name}-staging";
pkgs/top-level/all-packages.nix+1
@@ -15742,6 +15742,7 @@ let
1574215742 wine = callPackage ../misc/emulators/wine {
1574315743 wineRelease = config.wine.release or "stable";
1574415744 wineBuild = config.wine.build or "wine32";
15745+ pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
1574515746 };
1574615747 wineStable = wine.override { wineRelease = "stable"; };
1574715748 wineUnstable = lowPrio (wine.override { wineRelease = "unstable"; });