33 lines
525 B
Nix
33 lines
525 B
Nix
|
{
|
||
|
pkgs ? import <nixpkgs> { },
|
||
|
lib,
|
||
|
}:
|
||
|
let
|
||
|
packages = with pkgs; [
|
||
|
rust-analyzer
|
||
|
rustfmt
|
||
|
clippy
|
||
|
|
||
|
clang
|
||
|
mold
|
||
|
|
||
|
nixfmt-rfc-style
|
||
|
|
||
|
pkg-config
|
||
|
libGLU
|
||
|
libGL
|
||
|
libxkbcommon
|
||
|
wayland
|
||
|
];
|
||
|
in
|
||
|
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}";
|
||
|
};
|
||
|
}
|