summaryrefslogtreecommitdiff
path: root/shells/c.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shells/c.nix')
-rw-r--r--shells/c.nix17
1 files changed, 17 insertions, 0 deletions
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;
+}