nixpkgs/pkgs/applications/audio/mp3blaster/default.nix

33 lines
810 B
Nix
Raw Normal View History

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