2021-05-04 21:07:42 +00:00
|
|
|
{ fetchurl, lib, stdenv, pkg-config, libao, json_c, libgcrypt, ffmpeg, curl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-04 21:07:42 +00:00
|
|
|
pname = "pianobar";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "2022.04.01";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-04 21:07:42 +00:00
|
|
|
url = "https://6xq.net/projects/pianobar/${pname}-${version}.tar.bz2";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-FnCyiGWouCpXu23+p/FuL6QUXS81SRC7FzgLMsm5R2M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-05-04 21:07:42 +00:00
|
|
|
libao json_c libgcrypt ffmpeg curl
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
CC = "gcc";
|
|
|
|
CFLAGS = "-std=c99";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Console front-end for Pandora.com";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://6xq.net/pianobar/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit; # expat version
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "pianobar";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|