From ac0247e7199c1a35083bf256261d595256c6459d Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 26 Jan 2025 17:37:52 +0100 Subject: [PATCH] bacon: 3.8.0 -> 3.9.0 Diff: https://github.com/Canop/bacon/compare/refs/tags/v3.8.0...v3.9.0 Changelog: https://github.com/Canop/bacon/blob/v3.9.0/CHANGELOG.md --- pkgs/by-name/ba/bacon/package.nix | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ba/bacon/package.nix b/pkgs/by-name/ba/bacon/package.nix index 1498df4f09bd..0e4b02fb8e06 100644 --- a/pkgs/by-name/ba/bacon/package.nix +++ b/pkgs/by-name/ba/bacon/package.nix @@ -1,23 +1,39 @@ { lib, + stdenv, rustPlatform, fetchFromGitHub, + pkg-config, + alsa-lib, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "bacon"; - version = "3.8.0"; + version = "3.9.0"; src = fetchFromGitHub { owner = "Canop"; repo = "bacon"; tag = "v${version}"; - hash = "sha256-IWjG1esLwiEnESmnDE5kpuMu+LFaNrIomgrZoktkA2Q="; + hash = "sha256-LnJlE4ostOl+pr+d7ZsAfKvG4C45qt4pedWpeiTchPU="; }; - cargoHash = "sha256-IQ8vTr5Z17ylcOCQ+iqKP6+tawZXd+pMiYoSH5h7Zjg="; + cargoHash = "sha256-KS1SXrRqjvRom2zZOaaZZOMK2CRUwVmtXC2ilDfaEG0="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = + lib.optionals stdenv.hostPlatform.isLinux [ + alsa-lib + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # bindgenHook is only included on darwin as it is needed to build `coreaudio-sys`, a darwin-specific crate + rustPlatform.bindgenHook + ]; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = [ "--version" ];