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";
|
|
|
|
version = "2020.11.28";
|
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";
|
2021-01-17 00:15:33 +00:00
|
|
|
sha256 = "1znlwybfpxsjqr1jmr8j0ci8wzmpzmk2yxb0qcx9w9a8nnbgnfv5";
|
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
|
|
|
|
};
|
|
|
|
}
|