tonarchy

tonarchy

https://git.tonybtw.com/tonarchy.git git://git.tonybtw.com/tonarchy.git
877 bytes raw
1
{
2
  description = "tonarchy - Minimal Arch Linux installer";
3
4
  inputs = {
5
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6
  };
7
8
  outputs = { self, nixpkgs }:
9
    let
10
      systems = [ "x86_64-linux" "aarch64-linux" ];
11
      forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
12
    in
13
    {
14
      devShells = forAllSystems (pkgs: {
15
        default = pkgs.mkShell {
16
          buildInputs = [
17
            pkgs.gcc
18
            pkgs.glibc.static
19
            pkgs.gnumake
20
            pkgs.bear
21
            pkgs.qemu_kvm
22
            pkgs.OVMF
23
          ];
24
          shellHook = ''
25
            export PS1="(tonarchy-dev) $PS1"
26
            echo "tonarchy development environment"
27
            echo "Run 'make' to build"
28
            echo "Run './vm-test [iso-path]' to test an ISO in qemu"
29
          '';
30
        };
31
      });
32
    };
33
}