From 2c33db177354ad05fffa761e166db7f54518572f Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 5 Sep 2024 21:02:28 +0200 Subject: [PATCH] tsui: init 0.2.0 --- flake.nix | 1 + pkgs/tsui/default.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tsui/default.nix 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}" + ]; +}