Unverified Commit 541531e0 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

earbuds: cleanup (#396311)

parents 6a39403c d93240ab
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -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) \