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
|
2021-01-17 00:15:33 +00:00
|
|
|
] ++ lib.optional stdenv.isDarwin SDL;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString ([
|
|
|
|
"-Wno-narrowing"
|
2021-01-17 00:15:33 +00:00
|
|
|
] ++ lib.optionals stdenv.cc.isClang [
|
2020-06-18 07:06:33 +00:00
|
|
|
"-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
|
|
|
};
|
|
|
|
}
|