summaryrefslogtreecommitdiff
path: root/shells/c.nix
blob: 68e4b83e76e49204a3f88314a6803cca5070bc8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}