music-player: format

This commit is contained in:
ocfox 2024-09-06 21:34:55 +08:00
parent 1af6eaf93c
commit 6350c71d9b
No known key found for this signature in database

View File

@ -1,11 +1,12 @@
{ lib {
, stdenv lib,
, alsa-lib stdenv,
, darwin alsa-lib,
, fetchFromGitHub darwin,
, pkg-config fetchFromGitHub,
, protobuf pkg-config,
, rustPlatform protobuf,
rustPlatform,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
@ -22,18 +23,22 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-JmyuA5p6/7jtNuOMWuAuspYYid+dGOeollIlS0DRCIE="; cargoHash = "sha256-JmyuA5p6/7jtNuOMWuAuspYYid+dGOeollIlS0DRCIE=";
nativeBuildInputs = [ nativeBuildInputs =
protobuf [
rustPlatform.bindgenHook protobuf
] ++ lib.optionals stdenv.isLinux [ rustPlatform.bindgenHook
pkg-config ]
]; ++ lib.optionals stdenv.isLinux [
pkg-config
];
buildInputs = lib.optionals stdenv.isLinux [ buildInputs =
alsa-lib lib.optionals stdenv.isLinux [
] ++ lib.optionals stdenv.isDarwin [ alsa-lib
darwin.apple_sdk.frameworks.AudioUnit ]
]; ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AudioUnit
];
meta = with lib; { meta = with lib; {
description = "Extensible music player daemon written in Rust"; description = "Extensible music player daemon written in Rust";