master
 1{
 2  inputs = {
 3    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 4    flake-parts = {
 5      url = "github:hercules-ci/flake-parts";
 6      inputs.nixpkgs-lib.follows = "nixpkgs";
 7    };
 8    devshell = {
 9      url = "github:numtide/devshell";
10      inputs.nixpkgs.follows = "nixpkgs";
11    };
12  };
13
14  outputs = inputs:
15    inputs.flake-parts.lib.mkFlake {inherit inputs;} {
16      systems = [
17        "x86_64-linux"
18        "aarch64-linux"
19      ];
20
21      imports = [
22        inputs.devshell.flakeModule
23      ];
24
25      perSystem = {pkgs, ...}: {
26        packages.default = pkgs.callPackage ./package.nix {};
27
28        devshells.default = {
29          devshell.packages = with pkgs; [
30            go
31            gopls
32          ];
33        };
34      };
35    };
36}