2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, libvorbis, SDL }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mp3blaster";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "3.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stragulus";
|
2020-06-18 07:06:33 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
libvorbis
|
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin SDL;
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString ([
|
|
|
|
"-Wno-narrowing"
|
|
|
|
] ++ stdenv.lib.optionals stdenv.cc.isClang [
|
|
|
|
"-Wno-reserved-user-defined-literal"
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An audio player for the text console";
|
|
|
|
homepage = "http://www.mp3blaster.org/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ earldouglas ];
|
2020-06-18 07:06:33 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|