nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 50 lines 1.4 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildGoModule (finalAttrs: { 9 pname = "bluetuith"; 10 version = "0.2.3"; 11 12 src = fetchFromGitHub { 13 owner = "darkhz"; 14 repo = "bluetuith"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-yXH/koNT4ec/SOZhSU01iPNAfD1MdMjM2+wNmjXWsrk="; 17 }; 18 19 vendorHash = "sha256-tEVzuhE0Di7edGa5eJHLLqOecCuoj02h91TsZiZU1PM="; 20 21 env.CGO_ENABLED = 0; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 "-X github.com/darkhz/bluetuith/cmd.Version=${finalAttrs.version}@nixpkgs" 27 ]; 28 29 passthru.updateScript = nix-update-script { }; 30 31 meta = { 32 description = "TUI-based bluetooth connection manager"; 33 longDescription = '' 34 Bluetuith can transfer files via OBEX, perform authenticated pairing, 35 and (dis)connect different bluetooth devices. It interacts with bluetooth 36 adapters and can toogle their power and discovery state. Bluetuith can also 37 manage Bluetooth-based networking/tethering (PANU/DUN) and remote control 38 devices. The TUI has mouse support. 39 ''; 40 homepage = "https://github.com/darkhz/bluetuith"; 41 changelog = "https://github.com/darkhz/bluetuith/releases/tag/v${finalAttrs.version}"; 42 license = lib.licenses.mit; 43 platforms = lib.platforms.linux; 44 mainProgram = "bluetuith"; 45 maintainers = with lib.maintainers; [ 46 pyrox0 47 katexochen 48 ]; 49 }; 50})