blob: 32d30e6603f9931978b08c013555e42b27cc2c1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
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;
};
};
}
|