Merge pull request #174012 from marsam/fix-mpg321-darwin

mpg321: fix build on darwin

authored by Ben Siraphob and committed by GitHub d65ee335 2c4171ca

+6 -1
+6 -1
pkgs/applications/audio/mpg321/default.nix
··· 19 url = "https://sources.debian.org/data/main/m/mpg321/0.3.2-3/debian/patches/handle_illegal_bitrate_value.patch"; 20 sha256 = "15simp5fjvm9b024ryfh441rkh2d5bcrizqkzlrh07n9sm7fkw6x"; 21 }) 22 ]; 23 24 hardeningDisable = [ "format" ]; ··· 37 description = "Command-line MP3 player"; 38 homepage = "http://mpg321.sourceforge.net/"; 39 license = licenses.gpl2; 40 - platforms = platforms.gnu ++ platforms.linux; 41 }; 42 }
··· 19 url = "https://sources.debian.org/data/main/m/mpg321/0.3.2-3/debian/patches/handle_illegal_bitrate_value.patch"; 20 sha256 = "15simp5fjvm9b024ryfh441rkh2d5bcrizqkzlrh07n9sm7fkw6x"; 21 }) 22 + # Apple defines semun already. Skip redefining it to fix build errors. 23 + (fetchpatch { 24 + url = "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/mpg321/0.3.2.patch"; 25 + sha256 = "sha256-qFYpKpE9PZSzOJrnsQINZi6FvUVX0anRyOvlF5eOYqE="; 26 + }) 27 ]; 28 29 hardeningDisable = [ "format" ]; ··· 42 description = "Command-line MP3 player"; 43 homepage = "http://mpg321.sourceforge.net/"; 44 license = licenses.gpl2; 45 + platforms = platforms.unix; 46 }; 47 }