nix: add missing dependency xcb

This commit is contained in:
Yusuf Bera Ertan 2020-12-12 17:26:02 +03:00
parent b75a5ab32c
commit 23d1abc8a6
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 9 additions and 6 deletions

View File

@ -28,6 +28,7 @@ with pkgs;
alsa-sys = makeDeps [ alsaLib ] [ pkg-config ];
veloren-network = makeDeps [ openssl ] [ pkg-config ];
veloren-voxygen = makeDeps [ xorg.libxcb ] [ ];
xcb = makeDeps [ ] [ python3 ];
};
# deps that voxygen needs to function
# FIXME: Wayland doesn't work (adding libxkbcommon, wayland and wayland-protocols results in a panic)

View File

@ -71,11 +71,8 @@ let
veloren-crates = with pkgs;
callPackage ./Cargo.nix {
defaultCrateOverrides = with common;
defaultCrateOverrides = with common; with crateDeps;
defaultCrateOverrides // {
libudev-sys = _: crateDeps.libudev-sys;
alsa-sys = _: crateDeps.alsa-sys;
veloren-network = _: crateDeps.veloren-network;
veloren-common = _: {
# Disable `git-lfs` check here since we check it ourselves
# We have to include the command output here, otherwise Nix won't run it
@ -103,8 +100,8 @@ let
name = "veloren-voxygen";
inherit version;
VELOREN_USERDATA_STRATEGY = "system";
inherit (crateDeps.veloren-voxygen) buildInputs;
nativeBuildInputs = crateDeps.veloren-voxygen.nativeBuildInputs
inherit (veloren-voxygen) buildInputs;
nativeBuildInputs = veloren-voxygen.nativeBuildInputs
++ [ makeWrapper copyDesktopItems ];
desktopItems = [ velorenVoxygenDesktopFile ];
postInstall = ''
@ -121,6 +118,11 @@ let
'';
};
};
} // {
xcb = _: xcb;
libudev-sys = _: libudev-sys;
alsa-sys = _: alsa-sys;
veloren-network = _: veloren-network;
};
inherit release pkgs;
};