From b8c6c42e153956cda96aefa698dd63d431d1695e Mon Sep 17 00:00:00 2001 From: KeksNino Date: Thu, 2 Jul 2026 21:24:47 +0200 Subject: [PATCH] update flake.nix to build correctly with all dependencies --- flake.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index f01d5a8..ae94726 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ''; }; };