update flake.nix to build correctly with all dependencies
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user