ants/shell.nix

39 lines
622 B
Nix
Raw Permalink Normal View History

2024-04-09 09:54:45 +02:00
{
pkgs ? import <nixpkgs> { },
lib,
}:
let
packages = with pkgs; [
rust-analyzer
rustfmt
clippy
clang
mold
nixfmt-rfc-style
pkg-config
libGLU
libGL
libxkbcommon
wayland
2024-04-09 15:22:17 +02:00
# Only needed for X11
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
2024-04-09 09:54:45 +02:00
];
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}";
};
}