Files
nixpkgs/pkgs/by-name/ea/earbuds/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.4 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
installShellFiles,
pkg-config,
bluez,
dbus,
libpulseaudio,
}:
rustPlatform.buildRustPackage {
pname = "earbuds";
version = "0.1.9-unstable-2024-06-28";
src = fetchFromGitHub {
owner = "JojiiOfficial";
repo = "LiveBudsCli";
rev = "df46706e44fa9e7de355b11eab4cc850efe968a3";
hash = "sha256-IEor7aZnwCA6Rg2gXIYSQ65hV/jJOKehujOSZnVzVis=";
};
# fix daemon autostart not working
patches = [
./fix-daemon.patch
];
cargoHash = "sha256-Y1pMmWxfXGcEFPj05/BpXQvd199O5l6hJmePNxMQc/Y=";
nativeBuildInputs = [
installShellFiles
pkg-config
];
buildInputs = [
bluez
dbus
libpulseaudio
];
# package does not contain any tests
doCheck = false;
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd earbuds \
--bash <($out/bin/earbuds --generate bash) \
--fish <($out/bin/earbuds --generate fish) \
--zsh <($out/bin/earbuds --generate zsh)
'';
meta = {
description = "Free CLI tool to control your Galaxy Buds";
homepage = "https://github.com/JojiiOfficial/LiveBudsCli";
changelog = "https://github.com/JojiiOfficial/LiveBudsCli/releases";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ griffi-gh ];
mainProgram = "earbuds";
platforms = lib.platforms.linux;
};
}