mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 04:28:40 +03:00
mp3blaster: fix build on darwin
This commit is contained in:
parent
f648259731
commit
09cda2de69
@ -1,13 +1,12 @@
|
|||||||
{ stdenv, fetchFromGitHub, ncurses, libvorbis, SDL }:
|
{ stdenv, fetchFromGitHub, ncurses, libvorbis, SDL }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
version = "3.2.6";
|
|
||||||
|
|
||||||
pname = "mp3blaster";
|
pname = "mp3blaster";
|
||||||
|
version = "3.2.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "stragulus";
|
owner = "stragulus";
|
||||||
repo = "mp3blaster";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs";
|
sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs";
|
||||||
};
|
};
|
||||||
@ -17,14 +16,17 @@ stdenv.mkDerivation rec {
|
|||||||
libvorbis
|
libvorbis
|
||||||
] ++ stdenv.lib.optional stdenv.isDarwin SDL;
|
] ++ stdenv.lib.optional stdenv.isDarwin SDL;
|
||||||
|
|
||||||
buildFlags = [ "CXXFLAGS=-Wno-narrowing" ];
|
NIX_CFLAGS_COMPILE = toString ([
|
||||||
|
"-Wno-narrowing"
|
||||||
|
] ++ stdenv.lib.optionals stdenv.cc.isClang [
|
||||||
|
"-Wno-reserved-user-defined-literal"
|
||||||
|
]);
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An audio player for the text console";
|
description = "An audio player for the text console";
|
||||||
homepage = "http://www.mp3blaster.org/";
|
homepage = "http://www.mp3blaster.org/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ earldouglas ];
|
maintainers = with maintainers; [ earldouglas ];
|
||||||
platforms = platforms.all;
|
platforms = with platforms; linux ++ darwin;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user