67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
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.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "An7ar35";
|
|
repo = "ctune";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-fy7Wb4R6HDa+cLxI5YWq67gxw1XS/iDDN4M3Rn7GYeI=";
|
|
};
|
|
|
|
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 = "A 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;
|
|
};
|
|
})
|