update flake.nix to build correctly with all dependencies

This commit is contained in:
2026-07-02 21:24:47 +02:00
parent 40141693f3
commit b8c6c42e15
+10 -8
View File
@@ -28,13 +28,11 @@
};
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
libs = with pkgs; [
libX11
libXrandr
libXinerama
libXcursor
libXi
libPath = with pkgs; lib.makeLibraryPath [
fontconfig.dev
libxkbcommon
libGL
wayland
];
in
@@ -46,11 +44,15 @@
buildInputs = [
rust
cargo-nextest
]
++ libs;
pkg-config
fish
];
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${libPath}";
shellHook = ''
echo Entered Rust dev shell for project SoftwareManager-rs
exec fish
'';
};
};