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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A console front-end for Pandora.com";
|
|
|
|
homepage = "https://6xq.net/pianobar/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit; # expat version
|
|
|
|
};
|
|
|
|
}
|