Files
nixpkgs/pkgs/by-name/ct/ctune/package.nix
2026-05-15 03:46:16 +02:00

67 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
openssl,
curl,
ffmpeg,
vlc,
SDL2,
lame,
json_c,
cmake,
pkg-config,
ncurses,
libuuid,
pandoc,
pipewire,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ctune";
version = "1.3.10";
src = fetchFromGitHub {
owner = "An7ar35";
repo = "ctune";
tag = "v${finalAttrs.version}";
hash = "sha256-pC1xlcEX1f2kGewkq88iDAZwSlcRHmBpIw1aW74X6jw=";
};
nativeBuildInputs = [
cmake
pkg-config
pandoc
];
buildInputs = [
openssl
curl
ffmpeg
vlc
SDL2
lame
json_c
ncurses
libuuid
pipewire
];
strictDeps = true;
cmakeFlags = [
# Avoid a wrong nested install path location
# Set to "$out" instead of "$out/$out"
"-DCMAKE_INSTALL_PREFIX=''"
];
meta = {
description = "Nice terminal nCurses (tui) internet radio player for Linux, browse and search from api.radio-browser.info";
homepage = "https://github.com/An7ar35/ctune";
changelog = "https://github.com/An7ar35/ctune/blob/master/CHANGELOG.md";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ theobori ];
mainProgram = "ctune";
platforms = lib.platforms.linux;
};
})