mirror of
https://codeberg.org/icewind/vbsp-to-gltf.git
synced 2026-06-03 10:14:08 +02:00
fix gltfpack not found for nix build
This commit is contained in:
parent
0249988479
commit
1161fcf2ad
2 changed files with 5 additions and 3 deletions
|
|
@ -103,7 +103,7 @@
|
|||
preConfigure = ''
|
||||
cargo_build_options="--features server $cargo_build_options"
|
||||
'';
|
||||
buildInputs = with pkgs; [meshoptimizer];
|
||||
GLTFPACK = "${pkgs.meshoptimizer}/bin/gltfpack";
|
||||
});
|
||||
assets = pkgs.fetchSteam {
|
||||
name = "tf2-vpks";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@ pub async fn pack(map: &str, data: &[u8]) -> Result<Vec<u8>> {
|
|||
|
||||
input.write_all(data).await?;
|
||||
|
||||
let out = Command::new("gltfpack")
|
||||
let pack_cmd = option_env!("GLTFPACK").unwrap_or("gltfpack");
|
||||
|
||||
let out = Command::new(pack_cmd)
|
||||
.arg("-kn")
|
||||
.arg("-mm")
|
||||
.arg("-tc")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue