2015-04-21 18:00:59 +02:00
|
|
|
## Configuration:
|
|
|
|
# Control you default wine config in nixpkgs-config:
|
|
|
|
# wine = {
|
2015-05-10 21:33:00 +02:00
|
|
|
# release = "stable"; # "stable", "unstable", "staging"
|
2015-04-21 18:00:59 +02:00
|
|
|
# build = "wineWow"; # "wine32", "wine64", "wineWow"
|
|
|
|
# };
|
|
|
|
# Make additional configurations on demand:
|
2015-05-10 21:33:00 +02:00
|
|
|
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
|
2015-10-28 21:39:46 +01:00
|
|
|
{ lib, pkgs, system, callPackage,
|
2015-04-21 18:00:59 +02:00
|
|
|
wineRelease ? "stable",
|
2015-05-10 21:33:00 +02:00
|
|
|
wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"),
|
2015-12-24 02:58:57 +01:00
|
|
|
pulseaudioSupport ? false,
|
2015-05-10 21:33:00 +02:00
|
|
|
libtxc_dxtn_Name ? "libtxc_dxtn_s2tc" }:
|
2015-04-21 18:00:59 +02:00
|
|
|
|
2015-10-28 21:39:46 +01:00
|
|
|
let wine-build = build: release:
|
|
|
|
lib.getAttr build (callPackage ./packages.nix {
|
|
|
|
wineRelease = release;
|
2015-12-24 02:58:57 +01:00
|
|
|
inherit pulseaudioSupport;
|
2015-10-28 21:39:46 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
in if wineRelease == "staging" then
|
2015-05-10 21:33:00 +02:00
|
|
|
callPackage ./staging.nix {
|
|
|
|
inherit libtxc_dxtn_Name;
|
2015-10-28 21:39:46 +01:00
|
|
|
wineUnstable = wine-build wineBuild "unstable";
|
2015-05-10 21:33:00 +02:00
|
|
|
}
|
|
|
|
else
|
2015-10-28 21:39:46 +01:00
|
|
|
wine-build wineBuild wineRelease
|