From 245a5dace1016f486461a5451ee14dce2c04d830 Mon Sep 17 00:00:00 2001 From: Zach Coyle Date: Wed, 13 Mar 2024 11:34:00 -0400 Subject: [PATCH] add missing nix dependencies --- flake.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index b9f5ecb..54ac76c 100644 --- a/flake.nix +++ b/flake.nix @@ -25,13 +25,27 @@ cargoLock.lockFile = self + "/Cargo.lock"; + nativeBuildInputs = with pkgs; [ + pkg-config + ]; + + buildInputs = with pkgs; [ + libxkbcommon + ]; + postFixup = '' patchelf $out/bin/yofi --add-rpath ${rpath} ''; }; devShells.default = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ rustc cargo ]; + nativeBuildInputs = with pkgs; [ + rustc + cargo + pkg-config + libxkbcommon + ]; + LD_LIBRARY_PATH = rpath; }; }