diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-05-20 09:18:13 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-05-20 09:18:13 -0400 |
| commit | 97c4a95bad46abc41da63d3d09b33dd85af6d86a (patch) | |
| tree | 9400c8183bdb9402ad3d94dcbdd5ef97d0f03bc1 | |
| parent | fix steam controller (diff) | |
| download | dotfiles-nix-97c4a95bad46abc41da63d3d09b33dd85af6d86a.tar.gz dotfiles-nix-97c4a95bad46abc41da63d3d09b33dd85af6d86a.tar.bz2 dotfiles-nix-97c4a95bad46abc41da63d3d09b33dd85af6d86a.zip | |
new c shell for building stuff idk
| -rw-r--r-- | shells/c.nix | 17 | ||||
| -rw-r--r-- | shells/default.nix | 8 |
2 files changed, 25 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; +} diff --git a/shells/default.nix b/shells/default.nix index 2226294..2271b62 100644 --- a/shells/default.nix +++ b/shells/default.nix @@ -19,4 +19,12 @@ }; lib = inputs.nixpkgs.lib; }); + + # c libs i may need + c = pkgs.mkShell (import ./c.nix { + pkgs = import inputs.nixpkgs { + inherit system; + }; + lib = inputs.nixpkgs.lib; + }); } |