at v206 22 lines 715 B view raw
1## Configuration: 2# Control you default wine config in nixpkgs-config: 3# wine = { 4# release = "stable"; # "stable", "unstable", "staging" 5# build = "wineWow"; # "wine32", "wine64", "wineWow" 6# }; 7# Make additional configurations on demand: 8# wine.override { wineBuild = "wine32"; wineRelease = "staging"; }; 9{ lib, pkgs, system, callPackage, wineUnstable, 10 wineRelease ? "stable", 11 wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"), 12 libtxc_dxtn_Name ? "libtxc_dxtn_s2tc" }: 13 14if wineRelease == "staging" then 15 callPackage ./staging.nix { 16 inherit libtxc_dxtn_Name; 17 wine = wineUnstable; 18 } 19else 20 lib.getAttr wineBuild (callPackage ./packages.nix { 21 inherit wineRelease; 22 })