{ stdenv, lib, fetchFromGitHub, openssl, curl, ffmpeg, vlc, SDL2, lame, json_c, cmake, pkg-config, ncurses, libuuid, pandoc, }: stdenv.mkDerivation (finalAttrs: { pname = "ctune"; version = "1.3.4"; src = fetchFromGitHub { owner = "An7ar35"; repo = "ctune"; tag = "v${finalAttrs.version}"; hash = "sha256-36Y19CbUnv8NtvZjCMKod/Y/Ofjgr9BsxgMMdoMK+hU="; }; nativeBuildInputs = [ cmake pkg-config pandoc ]; buildInputs = [ openssl curl ffmpeg vlc SDL2 lame json_c ncurses libuuid ]; strictDeps = true; cmakeFlags = [ # Avoid a wrong nested install path location # Set to "$out" instead of "$out/$out" "-DCMAKE_INSTALL_PREFIX=''" ]; patches = [ ./cmake_disable_git_clone.patch ]; 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; }; })