Unverified Commit 24d9d8b1 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

mp3blaster: fix build on darwin (#420260)

parents d88150b4 b0c205a0
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -8,15 +8,15 @@
  SDL,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "mp3blaster";
  version = "3.2.6";

  src = fetchFromGitHub {
    owner = "stragulus";
    repo = "mp3blaster";
    rev = "v${version}";
    sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Gke6OjcrDlF3CceSVyfu8SGd0004cef8RlZ76Aet/F8=";
  };

  patches = [
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
    (fetchpatch {
      name = "ncurses-6.3.patch";
      url = "https://github.com/stragulus/mp3blaster/commit/62168cba5eaba6ffe56943552837cf033cfa96ed.patch";
      sha256 = "088l27kl1l58lwxfnw5x2n64sdjy925ycphni3icwag7zvpj0xz1";
      hash = "sha256-4Xcg7/7nKc7iiBZe5otIXjZNjBW9cOs6p6jQQOcRFCE=";
    })
  ];

@@ -40,14 +40,15 @@ stdenv.mkDerivation rec {
    ]
    ++ lib.optionals stdenv.cc.isClang [
      "-Wno-reserved-user-defined-literal"
      "-Wno-register"
    ]
  );

  meta = with lib; {
  meta = {
    description = "Audio player for the text console";
    homepage = "http://www.mp3blaster.org/";
    license = licenses.gpl2;
    maintainers = with maintainers; [ earldouglas ];
    platforms = with platforms; linux ++ darwin;
    license = lib.licenses.gpl2;
    maintainers = with lib.maintainers; [ earldouglas ];
    platforms = with lib.platforms; linux ++ darwin;
  };
}
})