mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
music-player: format
This commit is contained in:
parent
1af6eaf93c
commit
6350c71d9b
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user