build(nix): make voxygen debug package and app defaults

This commit is contained in:
Yusuf Bera Ertan 2021-04-16 18:45:38 +03:00
parent 62844d816a
commit 09a6d708b5
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 83 additions and 76 deletions

View File

@ -101,7 +101,7 @@ vek = { git = "https://gitlab.com/veloren/vek.git", branch = "fix_intrinsics2" }
systems = ["x86_64-linux"]
buildInputs = ["libudev", "alsaLib", "openssl", "xorg.libxcb", "libxkbcommon"]
nativeBuildInputs = ["pkg-config", "python3", "binutils"]
runtimeLibs = ["libGL", "xorg.libX11", "xorg.libXcursor", "xorg.libXrandr", "xorg.libXi", "wayland", "wayland-protocols"]
runtimeLibs = ["libGL", "xorg.libX11", "xorg.libXcursor", "xorg.libXrandr", "xorg.libXi"]
[workspace.metadata.nix.cachix]
name = "veloren-nix"

View File

@ -14,7 +14,9 @@
};
};
outputs = inputs: inputs.nixCargoIntegration.lib.makeOutputs {
outputs = inputs:
let
output = inputs.nixCargoIntegration.lib.makeOutputs {
root = ./.;
overrides = {
common = prev: {
@ -92,4 +94,9 @@
};
};
};
in
output // {
defaultApp = builtins.mapAttrs (_: apps: apps.veloren-voxygen-debug) output.apps;
defaultPackage = builtins.mapAttrs (_: packages: packages.veloren-voxygen-debug) output.packages;
};
}