nixpkgs/pkgs/applications/audio/termusic/default.nix
VuiMuich 91eae85639
termusic: 0.7.10 -> 0.7.11 (#247425)
* termusic: 0.7.10 -> 0.7.11

* termusic: sort attributes alphabetically, remove `with lib;`

* termusic: fix builds on Darwin

* termusic: fix builds on Darwin

* termusic: fix builds on x86_64 Darwin

* termusic: fix builds on Darwin

* Revert "termusic: fix builds on Darwin"

This reverts commit 90670409e9e3c9bcea18335e91f414cf038525b5.
This reverts commit f137ccf1094714b6f0f88b775771c6d826fc2736.

* termusic: fix builds on Darwin

* termusic: fix builds on Darwin

---------

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2023-08-11 08:56:43 +02:00

66 lines
1.1 KiB
Nix

{
alsa-lib
, AppKit
, CoreAudio
, CoreGraphics
, dbus
, Foundation
, fetchFromGitHub
, glib
, gst_all_1
, IOKit
, lib
, MediaPlayer
, openssl
, pkg-config
, protobuf
, rustPlatform
, Security
, sqlite
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "termusic";
version = "0.7.11";
src = fetchFromGitHub {
owner = "tramhao";
repo = "termusic";
rev = "v${version}";
hash = "sha256-ykOBXM/WF+zasAt+6mgY2aSFCpGaYcqk+YI7YLM3MWs=";
};
cargoHash = "sha256-BrOpU0RFdlRXQIMjfHfs/XYIdBCYKFSA+5by/rGzC8Y=";
nativeBuildInputs = [
pkg-config
protobuf
rustPlatform.bindgenHook
];
buildInputs = [
dbus
glib
gst_all_1.gstreamer
openssl
sqlite
] ++ lib.optionals stdenv.isDarwin [
AppKit
CoreAudio
CoreGraphics
Foundation
IOKit
MediaPlayer
Security
] ++ lib.optionals stdenv.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 ];
};
}