mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-04-17 21:58:54 -04:00
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
fenix.url = "github:nix-community/fenix";
|
|
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, fenix, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem(system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
toolchain = fenix.packages.${system}.fromToolchainFile {
|
|
file = ./rust-toolchain.toml;
|
|
sha256 = "sha256-ggvRZZFjlAlrZVjqul/f/UpU5CEhDbdKZU0OCR8Uzbc=";
|
|
};
|
|
shell = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
dosfstools
|
|
e2fsprogs
|
|
just
|
|
jq
|
|
pkg-config
|
|
python3
|
|
pkgsCross.aarch64-embedded.stdenv.cc
|
|
pkgsCross.aarch64-embedded.stdenv.cc.bintools
|
|
qemu
|
|
toolchain
|
|
minicom
|
|
wget
|
|
];
|
|
};
|
|
in
|
|
{
|
|
devShells.default = shell;
|
|
});
|
|
}
|