2015-04-21 17:00:59 +01:00
|
|
|
## Configuration:
|
|
|
|
# Control you default wine config in nixpkgs-config:
|
|
|
|
# wine = {
|
2015-05-10 20:33:00 +01:00
|
|
|
# release = "stable"; # "stable", "unstable", "staging"
|
2015-04-21 17:00:59 +01:00
|
|
|
# build = "wineWow"; # "wine32", "wine64", "wineWow"
|
|
|
|
# };
|
|
|
|
# Make additional configurations on demand:
|
2015-05-10 20:33:00 +01:00
|
|
|
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
|
2015-09-15 05:27:19 +01:00
|
|
|
{ lib, pkgs, system, callPackage, wineUnstable,
|
2015-04-21 17:00:59 +01:00
|
|
|
wineRelease ? "stable",
|
2015-05-10 20:33:00 +01:00
|
|
|
wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"),
|
|
|
|
libtxc_dxtn_Name ? "libtxc_dxtn_s2tc" }:
|
2015-04-21 17:00:59 +01:00
|
|
|
|
2015-05-10 20:33:00 +01:00
|
|
|
if wineRelease == "staging" then
|
|
|
|
callPackage ./staging.nix {
|
|
|
|
inherit libtxc_dxtn_Name;
|
2015-09-15 05:27:19 +01:00
|
|
|
wine = wineUnstable;
|
2015-05-10 20:33:00 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
lib.getAttr wineBuild (callPackage ./packages.nix {
|
|
|
|
inherit wineRelease;
|
|
|
|
})
|