summary refs log tree commit diff
path: root/pkgs/misc/emulators/wine/default.nix
blob: e2e85e7d8dab5cae13abefe220d186fbbf3bb7fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Configuration:
# Control you default wine config in nixpkgs-config:
# wine = {
#   release = "stable"; # "stable", "unstable", "staging"
#   build = "wineWow"; # "wine32", "wine64", "wineWow"
# };
# Make additional configurations on demand:
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
{ lib, pkgs, system, callPackage, wineUnstable,
  wineRelease ? "stable",
  wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"),
  libtxc_dxtn_Name ? "libtxc_dxtn_s2tc" }:

if wineRelease == "staging" then
  callPackage ./staging.nix {
    inherit libtxc_dxtn_Name;
    wine = wineUnstable;
  }
else
  lib.getAttr wineBuild (callPackage ./packages.nix {
    inherit wineRelease;
  })