mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
build(nix): fix shaderc lib
This commit is contained in:
parent
faf5b3fc9c
commit
fd480fdfbc
@ -109,10 +109,6 @@ key = "veloren-nix.cachix.org-1:zokfKJqVsNV6kI/oJdLF6TYBdNPYGSb+diMVQPn/5Rc="
|
||||
buildInputs = ["openssl"]
|
||||
nativeBuildInputs = ["pkg-config"]
|
||||
|
||||
[workspace.metadata.nix.crateOverride.shaderc-sys]
|
||||
buildInputs = ["shaderc"]
|
||||
nativeBuildInputs = ["cmake", "python3", "gnumake"]
|
||||
|
||||
[patch.crates-io]
|
||||
# macos CI fix isn't released yet
|
||||
winit = { git = "https://gitlab.com/veloren/winit.git", branch = "macos-test-spiffed" }
|
||||
|
@ -60,6 +60,12 @@
|
||||
# veloren-world = oldAttrs: {
|
||||
# crateBin = lib.filter (bin: bin.name != "chunk_compression_benchmarks") oldAttrs.crateBin;
|
||||
# };
|
||||
shaderc-sys = _:
|
||||
let SHADERC_LIB_DIR = "${common.pkgs.shaderc.lib}/lib"; in
|
||||
{
|
||||
inherit SHADERC_LIB_DIR;
|
||||
propagatedEnv = { inherit SHADERC_LIB_DIR; };
|
||||
};
|
||||
veloren-client = oldAttrs: {
|
||||
crateBin = lib.filter (bin: bin.name != "bot") oldAttrs.crateBin;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user