{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs";

  outputs = {
    nixpkgs,
    ...
  }: let
    eachSystem = fn: nixpkgs.lib.genAttrs [
      "x86_64-linux"
      "aarch64-linux"
    ] (system: (fn {
      inherit system;
      pkgs = (import nixpkgs { inherit system; } );
    }));
  in {
    devShells = eachSystem ({ pkgs, ... }: {
      default = pkgs.mkShell {
        buildInputs = [
          pkgs.openjdk8
          (pkgs.callPackage ./setup.nix {})
        ];
      };
    });
  };
}
