tsui: init 0.2.0

This commit is contained in:
Erwin Boskma 2024-09-05 21:02:28 +02:00
parent a32d29a9c8
commit 2c33db1773
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
2 changed files with 32 additions and 0 deletions

View file

@ -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 =

31
pkgs/tsui/default.nix Normal file
View file

@ -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}"
];
}