Fri, 25 Jul 2025 22:06:03 +0200
1 files changed,
12 insertions(+),
11 deletions(-)
jump to
M
shell.nix
→
shell.nix
@@ -2,15 +2,16 @@ #!/usr/bin/nix-shell
{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell { - nativeBuildInputs = - with pkgs; [ - # qemu - pkgsCross.i686-embedded.buildPackages.gcc - ] - ; - shellHook = - '' - echo 'exec ${builtins.getEnv "SHELL"}' - '' - ; + nativeBuildInputs = + with pkgs; [ + pkgsCross.i686-embedded.buildPackages.gcc + cmake + ninja + genimage + qemu + ]; + shellHook = + '' + export CMAKE_TOOLCHAIN_FILE="$PWD/cmake/i686-elf-toolchain.cmake" + ''; }