mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
nix: refactor crateDeps in common to look better
This commit is contained in:
parent
4c61914b91
commit
9f8ec7e010
@ -20,23 +20,15 @@ in
|
|||||||
with pkgs;
|
with pkgs;
|
||||||
let
|
let
|
||||||
# deps that crates need (for compiling)
|
# deps that crates need (for compiling)
|
||||||
crateDeps = {
|
crateDeps =
|
||||||
libudev-sys = {
|
let
|
||||||
buildInputs = [ libudev ];
|
makeDeps = b: n: { buildInputs = b; nativeBuildInputs = n; };
|
||||||
nativeBuildInputs = [ pkg-config ];
|
in
|
||||||
};
|
{
|
||||||
alsa-sys = {
|
libudev-sys = makeDeps [ libudev ] [ pkg-config ];
|
||||||
buildInputs = [ alsaLib ];
|
alsa-sys = makeDeps [ alsaLib ] [ pkg-config ];
|
||||||
nativeBuildInputs = [ pkg-config ];
|
veloren-network = makeDeps [ openssl ] [ pkg-config ];
|
||||||
};
|
veloren-voxygen = makeDeps [ xorg.libxcb ] [ ];
|
||||||
veloren-network = {
|
|
||||||
buildInputs = [ openssl ];
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
|
||||||
};
|
|
||||||
veloren-voxygen = {
|
|
||||||
buildInputs = [ xorg.libxcb ];
|
|
||||||
nativeBuildInputs = [ ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# deps that voxygen needs to function
|
# deps that voxygen needs to function
|
||||||
|
Loading…
Reference in New Issue
Block a user