mp3blaster: fix build on darwin (#420260)

authored by Nikolay Korotkiy and committed by GitHub 24d9d8b1 d88150b4

+10 -9
+10 -9
pkgs/by-name/mp/mp3blaster/package.nix
··· 8 8 SDL, 9 9 }: 10 10 11 - stdenv.mkDerivation rec { 11 + stdenv.mkDerivation (finalAttrs: { 12 12 pname = "mp3blaster"; 13 13 version = "3.2.6"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "stragulus"; 17 17 repo = "mp3blaster"; 18 - rev = "v${version}"; 19 - sha256 = "0pzwml3yhysn8vyffw9q9p9rs8gixqkmg4n715vm23ib6wxbliqs"; 18 + tag = "v${finalAttrs.version}"; 19 + hash = "sha256-Gke6OjcrDlF3CceSVyfu8SGd0004cef8RlZ76Aet/F8="; 20 20 }; 21 21 22 22 patches = [ ··· 25 25 (fetchpatch { 26 26 name = "ncurses-6.3.patch"; 27 27 url = "https://github.com/stragulus/mp3blaster/commit/62168cba5eaba6ffe56943552837cf033cfa96ed.patch"; 28 - sha256 = "088l27kl1l58lwxfnw5x2n64sdjy925ycphni3icwag7zvpj0xz1"; 28 + hash = "sha256-4Xcg7/7nKc7iiBZe5otIXjZNjBW9cOs6p6jQQOcRFCE="; 29 29 }) 30 30 ]; 31 31 ··· 40 40 ] 41 41 ++ lib.optionals stdenv.cc.isClang [ 42 42 "-Wno-reserved-user-defined-literal" 43 + "-Wno-register" 43 44 ] 44 45 ); 45 46 46 - meta = with lib; { 47 + meta = { 47 48 description = "Audio player for the text console"; 48 49 homepage = "http://www.mp3blaster.org/"; 49 - license = licenses.gpl2; 50 - maintainers = with maintainers; [ earldouglas ]; 51 - platforms = with platforms; linux ++ darwin; 50 + license = lib.licenses.gpl2; 51 + maintainers = with lib.maintainers; [ earldouglas ]; 52 + platforms = with lib.platforms; linux ++ darwin; 52 53 }; 53 - } 54 + })