{ description = "nitrous"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; systems.url = "github:nix-systems/default-linux"; gomod2nix = { url = "github:nix-community/gomod2nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, systems, gomod2nix }: let inherit (nixpkgs) lib; eachSystem = lib.genAttrs (import systems); pkgs = eachSystem (system: import nixpkgs { localSystem = system; overlays = [ gomod2nix.overlays.default ]; }); in { packages = eachSystem (system: { default = pkgs.${system}.buildGoApplication { pname = "voidway"; version = "latest"; goPackagePath = "git.sako.lol/sako/voidway/v4"; src = ./.; modules = ./gomod2nix.toml; }; }); devShells = eachSystem (system: { default = pkgs.${system}.mkShell { name = "v-shell"; buildInputs = with pkgs.${system}; [ go gopls gotools go-tools gomod2nix.packages.${system}.default sqlite-interactive ]; }; }); }; }