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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, ncurses, libvorbis, SDL }:
2018-02-14 03:11:42 +00:00
2020-06-10 16:56:00 +00:00
stdenv.mkDerivation rec {
pname = "mp3blaster";
2020-06-10 16:56:00 +00:00
version = "3.2.6";
2018-02-14 03:11:42 +00:00
src = fetchFromGitHub {
owner = "stragulus";
2020-06-10 16:56:00 +00:00
repo = pname;
2018-02-14 03:11:42 +00:00
rev = "v${version}";
sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs";
};
patches = [
# Fix pending upstream inclusion for ncurses-6.3 support:
# https://github.com/stragulus/mp3blaster/pull/8
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/stragulus/mp3blaster/commit/62168cba5eaba6ffe56943552837cf033cfa96ed.patch";
sha256 = "088l27kl1l58lwxfnw5x2n64sdjy925ycphni3icwag7zvpj0xz1";
})
];
buildInputs = [
ncurses
libvorbis
2021-01-15 13:21:58 +00:00
] ++ lib.optional stdenv.isDarwin SDL;
2018-02-14 03:11:42 +00:00
env.NIX_CFLAGS_COMPILE = toString ([
2020-06-10 16:56:00 +00:00
"-Wno-narrowing"
2021-01-15 13:21:58 +00:00
] ++ lib.optionals stdenv.cc.isClang [
2020-06-10 16:56:00 +00:00
"-Wno-reserved-user-defined-literal"
]);
2018-02-14 03:11:42 +00:00
meta = with lib; {
2018-02-14 03:11:42 +00:00
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 16:56:00 +00:00
platforms = with platforms; linux ++ darwin;
2018-02-14 03:11:42 +00:00
};
}