diff --git a/flake.nix b/flake.nix index 2aade96..82f7446 100644 --- a/flake.nix +++ b/flake.nix @@ -270,6 +270,7 @@ git-repo-go = pkgs.callPackage ./pkgs/git-repo-go { }; hassbridge = pkgs.callPackage ./pkgs/hassbridge { }; tinyows = pkgs.callPackage ./pkgs/tinyows { }; + tsui = pkgs.callPackage ./pkgs/tsui { }; }; devShells.default = diff --git a/pkgs/tsui/default.nix b/pkgs/tsui/default.nix new file mode 100644 index 0000000..1e55819 --- /dev/null +++ b/pkgs/tsui/default.nix @@ -0,0 +1,31 @@ +{ + buildGoModule, + fetchFromGitHub, + xorg, +}: +let + version = "0.2.0"; + +in +buildGoModule { + pname = "tsui"; + inherit version; + + src = fetchFromGitHub { + owner = "neuralinkcorp"; + repo = "tsui"; + rev = "v${version}"; + hash = "sha256-DVkiZc+7XNgj47T1uZg6bnfoMw+0dP4+72AxfCYKcL4="; + }; + + buildInputs = [ + xorg.libX11.dev + ]; + + vendorHash = "sha256-FIbkPE5KQ4w7Tc7kISQ7ZYFZAoMNGiVlFWzt8BPCf+A="; + + # Inject the version info in the binary. + ldflags = [ + "-X main.Version=${version}" + ]; +}