{ 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"; }; }