nixos-config/pkgs/tsui/default.nix

32 lines
515 B
Nix
Raw Normal View History

2024-09-05 21:02:28 +02:00
{
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}"
];
}