diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2022-05-20 04:20:00 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2022-05-20 04:20:00 +0000 |
commit | bbf42e811a465927938b6a374be8f0340d2b3d77 (patch) | |
tree | 8602606f244b1647aba31e53f93436bff572a387 /pkgs/applications | |
parent | 3f27f8ea10a759305112383dd7b34ceddba40064 (diff) | |
download | nixpkgs-bbf42e811a465927938b6a374be8f0340d2b3d77.tar nixpkgs-bbf42e811a465927938b6a374be8f0340d2b3d77.tar.gz nixpkgs-bbf42e811a465927938b6a374be8f0340d2b3d77.tar.bz2 nixpkgs-bbf42e811a465927938b6a374be8f0340d2b3d77.tar.lz nixpkgs-bbf42e811a465927938b6a374be8f0340d2b3d77.tar.xz nixpkgs-bbf42e811a465927938b6a374be8f0340d2b3d77.tar.zst nixpkgs-bbf42e811a465927938b6a374be8f0340d2b3d77.zip |
mpg321: fix build on darwin
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/audio/mpg321/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/audio/mpg321/default.nix b/pkgs/applications/audio/mpg321/default.nix index 03aee52f2a9..593b837704a 100644 --- a/pkgs/applications/audio/mpg321/default.nix +++ b/pkgs/applications/audio/mpg321/default.nix @@ -19,6 +19,11 @@ stdenv.mkDerivation rec { url = "https://sources.debian.org/data/main/m/mpg321/0.3.2-3/debian/patches/handle_illegal_bitrate_value.patch"; sha256 = "15simp5fjvm9b024ryfh441rkh2d5bcrizqkzlrh07n9sm7fkw6x"; }) + # Apple defines semun already. Skip redefining it to fix build errors. + (fetchpatch { + url = "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/mpg321/0.3.2.patch"; + sha256 = "sha256-qFYpKpE9PZSzOJrnsQINZi6FvUVX0anRyOvlF5eOYqE="; + }) ]; hardeningDisable = [ "format" ]; @@ -37,6 +42,6 @@ stdenv.mkDerivation rec { description = "Command-line MP3 player"; homepage = "http://mpg321.sourceforge.net/"; license = licenses.gpl2; - platforms = platforms.gnu ++ platforms.linux; + platforms = platforms.unix; }; } |