2024-09-19 14:19:46 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, pkg-config, libao, json_c, libgcrypt, ffmpeg_7, curl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-04 21:07:42 +00:00
|
|
|
pname = "pianobar";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2022.04.01-unstable-2024-08-16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PromyLOPh";
|
|
|
|
repo = "pianobar";
|
|
|
|
rev = "41ac06c8585dc535c4b1737b4c2943bb3fe7beb0";
|
|
|
|
hash = "sha256-5LTZ6J9bvfsnpD/bGuojekutFVdH9feWLF+nLFvkeOA=";
|
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 = [
|
2024-09-19 14:19:46 +00:00
|
|
|
libao json_c libgcrypt ffmpeg_7 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
|
|
|
};
|
|
|
|
}
|