blob: 776486e6928cef87875741f661aefd4a983b98b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
stdenv,
alsa-lib,
darwin,
fetchFromGitHub,
pkg-config,
protobuf,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "music-player";
version = "0.2.0-alpha.14-unstable-2024-08-24";
src = fetchFromGitHub {
owner = "tsirysndr";
repo = "music-player";
# No patch for 0.2.0, diff patch has a big size, temporarily until the next release
rev = "cf01ae4d2dcf5c804559250f2c7f922d870ae26d";
hash = "sha256-8C8uFnXSBalLD2MUgzzfg4ylvTVecyPJOSUri5jbvkM=";
};
cargoHash = "sha256-JmyuA5p6/7jtNuOMWuAuspYYid+dGOeollIlS0DRCIE=";
nativeBuildInputs =
[
protobuf
rustPlatform.bindgenHook
]
++ lib.optionals stdenv.isLinux [
pkg-config
];
buildInputs =
lib.optionals stdenv.isLinux [
alsa-lib
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AudioUnit
];
meta = with lib; {
description = "Extensible music player daemon written in Rust";
homepage = "https://github.com/tsirysndr/music-player";
changelog = "https://github.com/tsirysndr/music-player/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ ];
mainProgram = "music-player";
};
}
|