Created
April 7, 2023 08:51
-
-
Save damhiya/8a5023d6ecd6a5d050c5a7a57b5428f0 to your computer and use it in GitHub Desktop.
xv6 dev env for nixos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, flake-utils }: | |
flake-utils.lib.eachDefaultSystem (system: | |
let | |
pkgs = import nixpkgs { inherit system; }; | |
riscv64-pkgs = pkgs.pkgsCross.riscv64; | |
in { | |
devShell = riscv64-pkgs.mkShell { | |
nativeBuildInputs = with pkgs; [ gcc gdb qemu perl python3 ]; | |
}; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment