{ description = "tsvnstat: a tailscale aware vmcstat server"; inputs.nixpkgs.url = "nixpkgs/nixos-unstable"; outputs = { self, nixpkgs }: let supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); in { packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { tsvnstat = pkgs.buildGoModule { pname = "tsvnstat"; version = "v0.0.4"; src = ./.; vendorSha256 = "sha256-RNhu1gQ62Hg8Fhiw9uIS+b4YaAHtZMaqbelMKv+oZjM="; proxyVendor = true; }; }); defaultPackage = forAllSystems (system: self.packages.${system}.tsvnstat); devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { default = pkgs.mkShell { shellHook = '' PS1='\u@\h:\@; ' echo "Go `${pkgs.go}/bin/go version`" ''; nativeBuildInputs = with pkgs; [ git go gopls go-tools ]; }; }); }; }