nixpkgs/pkgs/by-name/bl/bluetuith/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.3 KiB
Nix
Raw Normal View History

2023-12-31 09:40:40 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
2022-07-13 17:16:23 +02:00
buildGoModule rec {
pname = "bluetuith";
2024-04-07 13:31:51 +02:00
version = "0.2.2";
2022-07-13 17:16:23 +02:00
src = fetchFromGitHub {
owner = "darkhz";
repo = pname;
rev = "v${version}";
2024-04-07 13:31:51 +02:00
sha256 = "sha256-JwPTFMimGDZnESx6l72cK545rzyDWWTBU66t9bU49w0=";
2022-07-13 17:16:23 +02:00
};
2024-04-07 13:31:51 +02:00
vendorHash = "sha256-A0hUenuji3bfJghLRM2mvFbusrHm+tQ+LeRGzIETpbs=";
2022-07-13 17:16:23 +02:00
CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X github.com/darkhz/bluetuith/cmd.Version=${version}@nixpkgs"
];
2022-07-13 17:16:23 +02:00
2023-12-31 09:40:40 +01:00
passthru.updateScript = nix-update-script { };
2022-07-13 17:16:23 +02:00
meta = with lib; {
description = "TUI-based bluetooth connection manager";
2023-12-31 09:19:04 +01:00
longDescription = ''
Bluetuith can transfer files via OBEX, perform authenticated pairing,
and (dis)connect different bluetooth devices. It interacts with bluetooth
adapters and can toogle their power and discovery state. Bluetuith can also
manage Bluetooth-based networking/tethering (PANU/DUN) and remote control
devices. The TUI has mouse support.
'';
2022-07-13 17:16:23 +02:00
homepage = "https://github.com/darkhz/bluetuith";
2023-12-31 09:19:04 +01:00
changelog = "https://github.com/darkhz/bluetuith/releases/tag/v${version}";
2022-07-13 17:16:23 +02:00
license = licenses.mit;
platforms = platforms.linux;
mainProgram = "bluetuith";
maintainers = with maintainers; [ pyrox0 katexochen ];
2022-07-13 17:16:23 +02:00
};
}