2021-05-02 12:04:54 +02:00
|
|
|
{ fetchurl, lib, stdenv, pkg-config, libao, json_c, libgcrypt, ffmpeg, curl }:
|
2013-06-08 03:50:41 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-02 12:04:54 +02:00
|
|
|
pname = "pianobar";
|
2022-04-05 19:20:50 +02:00
|
|
|
version = "2022.04.01";
|
2013-06-08 03:50:41 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-02 12:04:54 +02:00
|
|
|
url = "https://6xq.net/projects/pianobar/${pname}-${version}.tar.bz2";
|
2022-04-05 19:20:50 +02:00
|
|
|
sha256 = "sha256-FnCyiGWouCpXu23+p/FuL6QUXS81SRC7FzgLMsm5R2M=";
|
2013-06-08 03:50:41 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2013-06-08 03:50:41 +02:00
|
|
|
buildInputs = [
|
2021-05-02 12:04:54 +02:00
|
|
|
libao json_c libgcrypt ffmpeg curl
|
2013-06-08 03:50:41 +02:00
|
|
|
];
|
|
|
|
|
2019-10-29 23:21:22 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2013-06-08 03:50:41 +02:00
|
|
|
|
|
|
|
CC = "gcc";
|
|
|
|
CFLAGS = "-std=c99";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-06-08 03:50:41 +02:00
|
|
|
description = "A console front-end for Pandora.com";
|
2019-09-18 03:38:51 +02:00
|
|
|
homepage = "https://6xq.net/pianobar/";
|
|
|
|
platforms = platforms.unix;
|
2015-05-14 19:09:10 +02:00
|
|
|
license = licenses.mit; # expat version
|
2024-02-11 03:19:15 +01:00
|
|
|
mainProgram = "pianobar";
|
2013-06-08 03:50:41 +02:00
|
|
|
};
|
|
|
|
}
|