2024-09-06 14:34:55 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
alsa-lib,
|
|
|
|
darwin,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
protobuf,
|
|
|
|
rustPlatform,
|
2023-06-24 05:20:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "music-player";
|
2024-11-02 16:44:18 +00:00
|
|
|
version = "0.2.0-alpha.14-unstable-2024-10-02";
|
2023-06-24 05:20:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsirysndr";
|
|
|
|
repo = "music-player";
|
2024-11-02 16:44:18 +00:00
|
|
|
rev = "cbf03c3f2f0f9baca831b08ec27d9b31438faa3d";
|
|
|
|
hash = "sha256-BG0MU6IdFQX+C4BxTZlq5I7a4BQmUTvwAQALw5/UPBE=";
|
2023-06-24 05:20:00 +01:00
|
|
|
};
|
|
|
|
|
2024-11-02 16:44:18 +00:00
|
|
|
cargoHash = "sha256-t/jdVTdmaJk8Sb43XEuVCKa4kSR+ZrIEmMQKWeVpB70=";
|
2023-06-24 05:20:00 +01:00
|
|
|
|
2024-09-06 14:34:55 +01:00
|
|
|
nativeBuildInputs =
|
|
|
|
[
|
|
|
|
protobuf
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
|
|
pkg-config
|
|
|
|
];
|
2023-06-24 05:20:00 +01:00
|
|
|
|
2024-09-06 14:34:55 +01:00
|
|
|
buildInputs =
|
|
|
|
lib.optionals stdenv.hostPlatform.isLinux [
|
|
|
|
alsa-lib
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.AudioUnit
|
|
|
|
];
|
2023-06-24 05:20:00 +01:00
|
|
|
|
2024-11-02 16:43:41 +00:00
|
|
|
meta = {
|
2023-06-24 05:20:00 +01:00
|
|
|
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}";
|
2024-11-02 16:43:41 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-04-24 05:20:00 +01:00
|
|
|
maintainers = [ ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "music-player";
|
2023-06-24 05:20:00 +01:00
|
|
|
};
|
|
|
|
}
|