{ description = "netbird-tui - terminal UI for the local NetBird daemon"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { self, nixpkgs }: let systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); in { packages = forAllSystems (pkgs: rec { netbird-tui = pkgs.buildGoModule rec { pname = "netbird-tui"; version = "1.2"; src = pkgs.fetchFromGitHub { owner = "n0pashkov"; repo = "netbird-tui"; rev = "v${version}"; hash = "sha256-wMOZszRYoItBmCH+EjGvoNXnbo4GDTtaJZdokjbDNeY="; }; vendorHash = "sha256-S0HY46KF+2zHUI1Zg7obvAtORf8LIncybiCyxBB5AdQ="; # ditto ldflags = [ "-s" "-w" ]; meta = with nixpkgs.lib; { description = "Terminal UI for the local NetBird daemon"; homepage = "https://github.com/n0pashkov/netbird-tui"; license = licenses.mit; mainProgram = "netbird-tui"; }; }; default = netbird-tui; }); overlays.default = final: prev: { netbird-tui = self.packages.${final.stdenv.hostPlatform.system}.netbird-tui; }; }; }