2024-02-05 21:27:19 +01:00
|
|
|
{
|
|
|
|
pkgs ? import <nixpkgs> {},
|
|
|
|
lib,
|
|
|
|
}: let
|
|
|
|
packages = with pkgs; [
|
2024-01-04 16:36:41 +01:00
|
|
|
rust-analyzer
|
|
|
|
rustfmt
|
|
|
|
clippy
|
|
|
|
|
|
|
|
clang
|
|
|
|
mold
|
|
|
|
|
|
|
|
pkg-config
|
|
|
|
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
libxkbcommon
|
2024-02-05 21:27:19 +01:00
|
|
|
|
2024-01-04 16:36:41 +01:00
|
|
|
wayland
|
|
|
|
];
|
|
|
|
in
|
2024-02-05 21:27:19 +01:00
|
|
|
pkgs.mkShell {
|
|
|
|
# Get dependencies from the main package
|
|
|
|
inputsFrom = [(pkgs.callPackage ./default.nix {})];
|
|
|
|
nativeBuildInputs = packages;
|
|
|
|
buildInputs = packages;
|
|
|
|
env = {
|
|
|
|
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
|
|
|
|
LD_LIBRARY_PATH = "${lib.makeLibraryPath packages}";
|
|
|
|
};
|
|
|
|
}
|