wine: add 64 bit build and nixpkgs configuration

The default release channel (stable/unstable) and the default
build (wine32/wine64/wineWow) can be customized via the "wine" key in config
This commit is contained in:
Herwig Hochleitner
2015-05-10 15:45:01 +02:00
parent f550eb7fde
commit ae6d2796bc
8 changed files with 201 additions and 172 deletions
+15
View File
@@ -0,0 +1,15 @@
## Configuration:
# Control you default wine config in nixpkgs-config:
# wine = {
# release = "stable"; # "stable", "unstable"
# build = "wineWow"; # "wine32", "wine64", "wineWow"
# };
# Make additional configurations on demand:
# wine.overrideConfig { build = "wine32"; };
{ lib, system, callPackage,
wineRelease ? "stable",
wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32") }:
lib.getAttr wineBuild (callPackage ./packages.nix {
inherit wineRelease;
})