Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
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.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;
|
|
};
|
|
})
|