CeDOS - shell.nix

shell.nix (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/nix-shell
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
	nativeBuildInputs =
		with pkgs; [
			pkgsCross.i686-embedded.buildPackages.gcc
			cmake
			ninja
			genimage
			qemu
			(python3.withPackages (ps: with ps; [ pypng ]))
		];
	shellHook =
		''
			export CMAKE_TOOLCHAIN_FILE="$PWD/cmake/i686-elf-toolchain.cmake"
		'';
}