From bc5367def1b6a043e4e5a70ad5a5fdf755de93b2 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 1 Dec 2022 12:24:51 +0100 Subject: [PATCH] cplay-ng: init at 5.1.0 --- pkgs/applications/audio/cplay-ng/default.nix | 48 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/applications/audio/cplay-ng/default.nix diff --git a/pkgs/applications/audio/cplay-ng/default.nix b/pkgs/applications/audio/cplay-ng/default.nix new file mode 100644 index 000000000000..965cb31fde54 --- /dev/null +++ b/pkgs/applications/audio/cplay-ng/default.nix @@ -0,0 +1,48 @@ +{ lib +, python3 +, fetchFromGitHub +, makeWrapper +, mpv +, pulseaudio +}: + +python3.pkgs.buildPythonApplication rec { + pname = "cplay-ng"; + version = "5.1.0"; + + src = fetchFromGitHub { + owner = "xi"; + repo = "cplay-ng"; + rev = version; + hash = "sha256-pmuZ1NgrQKEJLoJEVC9wp5deFWc6DiX5DpnISeOOw4k="; + }; + + nativeBuildInputs = [ + makeWrapper + ]; + + postInstall = '' + wrapProgram $out/bin/cplay-ng \ + --prefix PATH : ${lib.makeBinPath [ mpv pulseaudio ]} + ''; + + meta = with lib; { + homepage = "https://github.com/xi/cplay-ng"; + description = "Simple curses audio player"; + longDescription = '' + cplay is a minimalist music player with a textual user interface written + in Python. It aims to provide a power-user-friendly interface with simple + filelist and playlist control. + + Instead of building an elaborate database of your music library, cplay + allows you to quickly browse the filesystem and enqueue files, + directories, and playlists. + + The original cplay was started by Ulf Betlehem in 1998 and is no longer + maintained. This is a rewrite that aims to stay true to the original + design while evolving with a shifting environment. + ''; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ fgaz ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 72258427e784..80ab680840ec 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27887,6 +27887,8 @@ with pkgs; cozy-drive = callPackage ../applications/networking/cozy-drive {}; + cplay-ng = callPackage ../applications/audio/cplay-ng { }; + cq-editor = libsForQt5.callPackage ../applications/graphics/cq-editor { python3Packages = python37Packages; };