2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
2023-03-04 12:14:45 +00:00
|
|
|
, fetchCrate
|
|
|
|
, fetchpatch
|
2022-03-05 16:20:37 +00:00
|
|
|
, pkg-config
|
2023-03-04 12:14:45 +00:00
|
|
|
, alsa-lib
|
|
|
|
, darwin
|
|
|
|
}:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "termusic";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.7.10";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-m0hi5u4BcRcEDEpg1BoWXc25dfhD6+OJtqSZfSdV0HM=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoHash = "sha256-A83gLsaPm6t4nm7DJfcp9z1huDU/Sfy9gunP8pzBiCA=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
|
|
|
alsa-lib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.AudioUnit
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal Music Player TUI written in Rust";
|
|
|
|
homepage = "https://github.com/tramhao/termusic";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ devhell ];
|
|
|
|
};
|
|
|
|
}
|