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>
This commit is contained in:
VuiMuich 2023-08-11 08:56:43 +02:00 committed by GitHub
parent 11717e91b4
commit 91eae85639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 19 deletions

View File

@ -1,39 +1,66 @@
{ lib
, stdenv
, rustPlatform
, fetchCrate
, fetchpatch
{
alsa-lib
, AppKit
, CoreAudio
, CoreGraphics
, dbus
, Foundation
, fetchFromGitHub
, glib
, gst_all_1
, IOKit
, lib
, MediaPlayer
, openssl
, pkg-config
, alsa-lib
, darwin
, protobuf
, rustPlatform
, Security
, sqlite
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "termusic";
version = "0.7.10";
version = "0.7.11";
src = fetchCrate {
inherit pname version;
hash = "sha256-m0hi5u4BcRcEDEpg1BoWXc25dfhD6+OJtqSZfSdV0HM=";
src = fetchFromGitHub {
owner = "tramhao";
repo = "termusic";
rev = "v${version}";
hash = "sha256-ykOBXM/WF+zasAt+6mgY2aSFCpGaYcqk+YI7YLM3MWs=";
};
cargoHash = "sha256-A83gLsaPm6t4nm7DJfcp9z1huDU/Sfy9gunP8pzBiCA=";
cargoHash = "sha256-BrOpU0RFdlRXQIMjfHfs/XYIdBCYKFSA+5by/rGzC8Y=";
nativeBuildInputs = [
pkg-config
protobuf
rustPlatform.bindgenHook
];
buildInputs = lib.optionals stdenv.isLinux [
alsa-lib
buildInputs = [
dbus
glib
gst_all_1.gstreamer
openssl
sqlite
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AudioUnit
AppKit
CoreAudio
CoreGraphics
Foundation
IOKit
MediaPlayer
Security
] ++ lib.optionals stdenv.isLinux [
alsa-lib
];
meta = with lib; {
meta = {
description = "Terminal Music Player TUI written in Rust";
homepage = "https://github.com/tramhao/termusic";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ devhell ];
license = with lib.licenses; [ gpl3Only ];
maintainers = with lib.maintainers; [ devhell ];
};
}

View File

@ -1944,7 +1944,9 @@ with pkgs;
tere = callPackage ../tools/misc/tere { };
termusic = callPackage ../applications/audio/termusic { };
termusic = darwin.apple_sdk_11_0.callPackage ../applications/audio/termusic {
inherit (darwin.apple_sdk_11_0.frameworks) AppKit CoreAudio CoreGraphics Foundation IOKit MediaPlayer Security;
};
tfk8s = callPackage ../tools/misc/tfk8s { };