diff options
author | Karel Kočí <cynerd@email.cz> | 2022-06-13 08:18:32 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-06-13 08:18:32 +0200 |
commit | 4fa33b32e2567276f84a8ef49cb01328db801fe2 (patch) | |
tree | fc000dbb83383660d4090c5f2a1b1659bd168206 /devShells/nuttx.nix | |
parent | ef2e9a31c61afdbb106eea365b1758a1c1ceadca (diff) | |
download | nixos-personal-4fa33b32e2567276f84a8ef49cb01328db801fe2.tar.gz nixos-personal-4fa33b32e2567276f84a8ef49cb01328db801fe2.tar.bz2 nixos-personal-4fa33b32e2567276f84a8ef49cb01328db801fe2.zip |
devShells/c: add
Diffstat (limited to 'devShells/nuttx.nix')
-rw-r--r-- | devShells/nuttx.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devShells/nuttx.nix b/devShells/nuttx.nix new file mode 100644 index 0000000..3066997 --- /dev/null +++ b/devShells/nuttx.nix @@ -0,0 +1,23 @@ +{ nixpkgs, shellrc, system }: arch: +let + pkgs = nixpkgs.legacyPackages.${system}; + pkgs-riscv = import nixpkgs.outPath { + localSystem = system; + crossSystem = { + config = "arm-none-eabi"; + libc = "newlib"; + gcc = { + arch = arch; + }; + }; + }; + +in pkgs.mkShell { + packages = (with pkgs; [ + kconfig-frontends + ]) ++ (with pkgs-riscv.buildPackages; [ + gcc gdb + ]); + inputsFrom = [ shellrc.packages.${system}.default ]; + meta.platforms = nixpkgs.lib.platforms.linux; +} |