mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
23 lines
662 B
Nix
23 lines
662 B
Nix
{ pkgs }:
|
|
with pkgs;
|
|
let
|
|
xorgLibraries = with xorg; [ libX11 libXcursor libXrandr libXi ];
|
|
otherLibraries = [
|
|
libGL
|
|
# wayland
|
|
/* uncomment above for wayland support (?)
|
|
for some reason it doesn't work (triggers `unreachable!()` code in winit!)
|
|
so I disabled it by default
|
|
*/
|
|
];
|
|
neededLibPaths = lib.concatStringsSep ":"
|
|
(map (p: "${p}/lib") (xorgLibraries ++ otherLibraries));
|
|
|
|
crateDeps = {
|
|
libudev-sys = [ pkg-config libudev ];
|
|
alsa-sys = [ pkg-config alsaLib ];
|
|
veloren-network = [ pkg-config openssl ];
|
|
veloren-voxygen = [ atk cairo glib gtk3 pango ];
|
|
};
|
|
in { inherit neededLibPaths crateDeps; }
|