ableos/flake.nix

38 lines
789 B
Nix
Raw Normal View History

{
description = "A devShell example";
inputs = {
2024-12-16 07:30:16 -06:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
2024-12-16 07:30:16 -06:00
flake-utils.url = "github:numtide/flake-utils";
};
2024-12-16 07:30:16 -06:00
outputs =
{
self,
nixpkgs,
rust-overlay,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
rustToolchain
qemu_full
];
};
}
);
}