diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a136a17 --- /dev/null +++ b/flake.nix @@ -0,0 +1,39 @@ +{ + description = "systems programming x86"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + nixpkgs, + flake-utils, + ... + }: let + supportedSystems = let + inherit (flake-utils.lib) system; + in [ + system.aarch64-linux + system.x86_64-linux + ]; + in + flake-utils.lib.eachSystem supportedSystems (system: let + pkgs = import nixpkgs {inherit system;}; + in { + devShell = + pkgs.mkShell + { + packages = with pkgs; [ + # (writeShellScriptBin "build" "zig build -Dcpu=baseline") + gnumake + gdb + valgrind + zig_0_14 + qemu + ]; + }; + + formatter = pkgs.alejandra; + }); +} |