{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem ( system: let pkgs = nixpkgs.legacyPackages.${system}; nativeBuildInputs = with pkgs; [ go gopls ]; buildInputs = with pkgs; [ ]; in { devShells.default = pkgs.mkShell { inherit nativeBuildInputs buildInputs; }; packages.default = pkgs.buildGoModule rec { name = "trading_post"; src = ./.; inherit buildInputs; vendorHash = null; }; } ); }