forked from mirrors/nixpkgs
wine: fix infinite recursion in wine-staging build
This commit is contained in:
parent
accc98ca7f
commit
2145c99ae3
|
@ -6,17 +6,20 @@
|
|||
# };
|
||||
# Make additional configurations on demand:
|
||||
# wine.override { wineBuild = "wine32"; wineRelease = "staging"; };
|
||||
{ lib, pkgs, system, callPackage, wineUnstable,
|
||||
{ lib, pkgs, system, callPackage,
|
||||
wineRelease ? "stable",
|
||||
wineBuild ? (if system == "x86_64-linux" then "wineWow" else "wine32"),
|
||||
libtxc_dxtn_Name ? "libtxc_dxtn_s2tc" }:
|
||||
|
||||
if wineRelease == "staging" then
|
||||
let wine-build = build: release:
|
||||
lib.getAttr build (callPackage ./packages.nix {
|
||||
wineRelease = release;
|
||||
});
|
||||
|
||||
in if wineRelease == "staging" then
|
||||
callPackage ./staging.nix {
|
||||
inherit libtxc_dxtn_Name;
|
||||
wine = wineUnstable;
|
||||
wineUnstable = wine-build wineBuild "unstable";
|
||||
}
|
||||
else
|
||||
lib.getAttr wineBuild (callPackage ./packages.nix {
|
||||
inherit wineRelease;
|
||||
})
|
||||
wine-build wineBuild wineRelease
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, callPackage, lib, fetchFromGitHub, wine, libtxc_dxtn_Name }:
|
||||
{ stdenv, callPackage, lib, fetchFromGitHub, wineUnstable, libtxc_dxtn_Name }:
|
||||
|
||||
with callPackage ./util.nix {};
|
||||
|
||||
|
@ -11,10 +11,10 @@ let v = (import ./versions.nix).staging;
|
|||
rev = "v${version}";
|
||||
};
|
||||
build-inputs = pkgNames: extra:
|
||||
(mkBuildInputs wine.pkgArches pkgNames) ++ extra;
|
||||
in assert (builtins.parseDrvName wine.name).version == version;
|
||||
(mkBuildInputs wineUnstable.pkgArches pkgNames) ++ extra;
|
||||
in assert (builtins.parseDrvName wineUnstable.name).version == version;
|
||||
|
||||
stdenv.lib.overrideDerivation wine (self: {
|
||||
stdenv.lib.overrideDerivation wineUnstable (self: {
|
||||
nativeBuildInputs = build-inputs [ "libpulseaudio" libtxc_dxtn_Name ] self.nativeBuildInputs;
|
||||
buildInputs = build-inputs [ "perl" "utillinux" "autoconf" ] self.buildInputs;
|
||||
|
||||
|
|
Loading…
Reference in a new issue