Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Sep 5, 2024
1 parent a3f1871 commit bb126bd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
12 changes: 10 additions & 2 deletions crates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,13 @@ let

nativeBuildInputs =
(with pkgs; [
alsa-lib.dev
capnproto
cargo-component
libxkbcommon.dev
openssl.dev
udev.dev
wayland.dev
])
++ [ wac-cli ]
++ commonNativeBuildInputs;
Expand Down Expand Up @@ -157,14 +162,17 @@ let
buildInputs = lib.optionals pkgs.stdenv.isLinux (
with pkgs;
[
alsa-lib
openssl
udev
]
);

nativeBuildInputs =
(with pkgs; [ capnproto ])
(with pkgs; [
capnproto
openssl.dev
udev.dev
])
++ commonNativeBuildInputs
++ lib.optionals pkgs.stdenv.isDarwin (with pkgs; [ darwin.apple_sdk.frameworks.Cocoa ]);

Expand Down
1 change: 1 addition & 0 deletions crates/unavi-scripting/src/api/wired/player/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use wasm_bridge::component::{Linker, Resource};

use crate::{api::utils::RefResource, state::StoreState};

#[allow(clippy::module_inception)]
mod player;
pub mod systems;

Expand Down
34 changes: 15 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,22 @@
inherit crates;

apps = crates.apps // deploy.apps;

checks = crates.checks;
packages =
crates.packages
// deploy.packages
// {
githubMatrix = githubMatrix // {
matrix.include = map (
entry:
let
split = pkgs.lib.strings.splitString "." entry.attr;
package = pkgs.lib.strings.removeSuffix "\"" (
pkgs.lib.strings.removePrefix "\"" (builtins.elemAt split 1)
);
platform = builtins.elemAt split 0;
in
entry // { name = "${package}.${platform}"; }
) githubMatrix.matrix.include;
};
};
packages = crates.packages // deploy.packages;

githubMatrix = githubMatrix // {
matrix.include = map (
entry:
let
split = pkgs.lib.strings.splitString "." entry.attr;
package = pkgs.lib.strings.removeSuffix "\"" (
pkgs.lib.strings.removePrefix "\"" (builtins.elemAt split 1)
);
platform = builtins.elemAt split 0;
in
entry // { name = "${package}.${platform}"; }
) githubMatrix.matrix.include;
};

devShells.default = craneLib.devShell {
packages =
Expand Down
3 changes: 1 addition & 2 deletions wasm/test-wired-scene/src/node.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use crate::{
bindings::wired::{
log::api::{log, LogLevel},
physics::types::{Collider, RigidBodyType, Shape},
scene::{
gltf::Gltf,
mesh::Mesh,
node::{Node, RigidBody, Transform},
node::{Node, Transform},
},
},
panic_log,
Expand Down

0 comments on commit bb126bd

Please sign in to comment.