Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.0 KiB
Nix
58 lines
1.0 KiB
Nix
{
|
|
alsa-lib,
|
|
dbus,
|
|
fetchFromGitHub,
|
|
glib,
|
|
gst_all_1,
|
|
lib,
|
|
mpv-unwrapped,
|
|
openssl,
|
|
pkg-config,
|
|
protobuf,
|
|
rustPlatform,
|
|
sqlite,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "termusic";
|
|
version = "0.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tramhao";
|
|
repo = "termusic";
|
|
rev = "v${version}";
|
|
hash = "sha256-89eqOeSq9uI4re3Oq0/ORMzMjYA4pLw7ZYyfGPXWtfg=";
|
|
};
|
|
|
|
cargoHash = "sha256-yzmZC1JwTHefAE2X/D1yfVZN4wGxnH+FkXGqKMuaVeM=";
|
|
|
|
useNextest = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
protobuf
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
glib
|
|
gst_all_1.gstreamer
|
|
mpv-unwrapped
|
|
openssl
|
|
sqlite
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
alsa-lib
|
|
];
|
|
|
|
meta = {
|
|
description = "Terminal Music Player TUI written in Rust";
|
|
homepage = "https://github.com/tramhao/termusic";
|
|
license = with lib.licenses; [ gpl3Only ];
|
|
maintainers = with lib.maintainers; [ devhell ];
|
|
mainProgram = "termusic";
|
|
};
|
|
}
|