lychee/nix/shell.nix
NotAShelf 0fc6b177cc
nix: package with flakes; simplify devshell
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia37044debea91a1db3d944a0c74f66356a6a6964
2026-04-06 13:19:15 +03:00

33 lines
468 B
Nix

{
lib,
mkShell,
cargo,
rustfmt,
clippy,
taplo,
pkg-config,
wayland,
libxkbcommon,
}: let
runtimeDeps = [
libxkbcommon
wayland
];
in
mkShell {
name = "rust";
strictDeps = true;
nativeBuildInputs = [
pkg-config
cargo
clippy
(rustfmt.override {asNightly = true;})
taplo
];
buildInputs = runtimeDeps;
env.LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${lib.makeLibraryPath runtimeDeps}";
}