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;
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user