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; rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
libs = with pkgs; [ libPath = with pkgs; lib.makeLibraryPath [
libX11 fontconfig.dev
libXrandr
libXinerama
libXcursor
libXi
libxkbcommon libxkbcommon
libGL
wayland
]; ];
in in
@@ -46,11 +44,15 @@
buildInputs = [ buildInputs = [
rust rust
cargo-nextest cargo-nextest
] pkg-config
++ libs; fish
];
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${libPath}";
shellHook = '' shellHook = ''
echo Entered Rust dev shell for project SoftwareManager-rs echo Entered Rust dev shell for project SoftwareManager-rs
exec fish
''; '';
}; };
}; };