From 97c4a95bad46abc41da63d3d09b33dd85af6d86a Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 20 May 2026 09:18:13 -0400 Subject: new c shell for building stuff idk --- shells/c.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 shells/c.nix (limited to 'shells/c.nix') diff --git a/shells/c.nix b/shells/c.nix new file mode 100644 index 0000000..68e4b83 --- /dev/null +++ b/shells/c.nix @@ -0,0 +1,17 @@ +{ + pkgs, + lib, +}: rec { + nativeBuildInputs = with pkgs; [ + gcc + pkg-config + ]; + + buildInputs = with pkgs; [ + hidapi + libusb1 + ]; + + C_INCLUDE_PATH = pkgs.lib.makeSearchPath "include" buildInputs; + LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; +} -- cgit v1.3.1-freya