2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, libvorbis, SDL }:
|
2018-02-14 04:11:42 +01:00
|
|
|
|
2020-06-10 18:56:00 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mp3blaster";
|
2020-06-10 18:56:00 +02:00
|
|
|
version = "3.2.6";
|
2018-02-14 04:11:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stragulus";
|
2020-06-10 18:56:00 +02:00
|
|
|
repo = pname;
|
2018-02-14 04:11:42 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs";
|
|
|
|
};
|
|
|
|
|
2018-02-26 21:19:35 +01:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
libvorbis
|
2021-01-15 14:21:58 +01:00
|
|
|
] ++ lib.optional stdenv.isDarwin SDL;
|
2018-02-14 04:11:42 +01:00
|
|
|
|
2020-06-10 18:56:00 +02:00
|
|
|
NIX_CFLAGS_COMPILE = toString ([
|
|
|
|
"-Wno-narrowing"
|
2021-01-15 14:21:58 +01:00
|
|
|
] ++ lib.optionals stdenv.cc.isClang [
|
2020-06-10 18:56:00 +02:00
|
|
|
"-Wno-reserved-user-defined-literal"
|
|
|
|
]);
|
2018-02-14 04:11:42 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-14 04:11:42 +01:00
|
|
|
description = "An audio player for the text console";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.mp3blaster.org/";
|
2018-02-14 04:11:42 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ earldouglas ];
|
2020-06-10 18:56:00 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2018-02-14 04:11:42 +01:00
|
|
|
};
|
|
|
|
}
|