Skip to content

Commit

Permalink
Merge pull request #1690 from A-Walrus/fix_nix
Browse files Browse the repository at this point in the history
Fix nix flake
  • Loading branch information
hannobraun authored Mar 16, 2023
2 parents fe28af5 + 22d54d2 commit 4cbda3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
craneLib = (crane.mkLib pkgs).overrideToolchain rustToolchain;
version = (builtins.fromTOML (builtins.readFile ../Cargo.toml)).workspace.package.version;
# Only keeps assets in crates/ (currently shaders and fonts)
assetsFilter = path: _type: (builtins.match ".*(:?wgsl|ttf)$" path) != null;
assetsFilter = path: _type: (builtins.match ".*(:?wgsl|ttf|png|obj|fj.toml|mtl)$" path) != null;
filter = path: type: (assetsFilter path type) || (craneLib.filterCargoSources path type);
buildInputs = with pkgs; [
pkg-config
Expand Down Expand Up @@ -77,7 +77,7 @@
inherit buildInputs;
nativeBuildInputs = [ rustToolchain ];

LD_LIBRARY_PATH = "${nixpkgs.lib.makeLibraryPath [ pkgs.vulkan-loader ]}";
LD_LIBRARY_PATH = "${nixpkgs.lib.makeLibraryPath [ pkgs.vulkan-loader pkgs.stdenv.cc.cc.lib pkgs.lib3mf]}";
};
});
}

0 comments on commit 4cbda3f

Please sign in to comment.