earbuds: cleanup

This commit is contained in:
Gaetan Lepage
2025-04-05 14:17:33 +02:00
parent 5b037fa77b
commit d93240abf5
+3 -10
View File
@@ -4,11 +4,10 @@
rustPlatform,
fetchFromGitHub,
installShellFiles,
nix-update-script,
pkg-config,
bluez,
dbus,
libpulseaudio,
bluez,
}:
rustPlatform.buildRustPackage {
pname = "earbuds";
@@ -30,25 +29,19 @@ rustPlatform.buildRustPackage {
cargoHash = "sha256-Y1pMmWxfXGcEFPj05/BpXQvd199O5l6hJmePNxMQc/Y=";
nativeBuildInputs = [
pkg-config
installShellFiles
pkg-config
];
buildInputs = [
bluez
dbus
libpulseaudio
bluez
];
# package does not contain any tests
doCheck = false;
# nativeInstallCheckInputs = [
# versionCheckHook
# ];
# versionCheckProgramArg = [ "--version" ];
# doInstallCheck = true;
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd earbuds \
--bash <($out/bin/earbuds --generate bash) \