16 inherit (darwin.apple_sdk.frameworks)
21 stdenv.mkDerivation rec {
25 src = fetchFromGitHub {
29 hash = "sha256-N2znqy58tMHgYa07vEsSedWLRhoJzDoINcsUu0UYLnA=";
34 # https://github.com/icculus/SDL_sound/pull/32 - fix build on darwin
35 # can be dropped on the next update
36 url = "https://github.com/icculus/SDL_sound/commit/c15d75b7720113b28639baad284f45f943846294.patch";
37 hash = "sha256-4GL8unsZ7eNkzjLXq9QdaxFQMzX2tdP0cBR1jTaRLc0=";
41 nativeBuildInputs = [ cmake ];
43 cmakeFlags = [ "-DSDLSOUND_DECODER_MIDI=1" ];
53 ++ lib.optionals stdenv.hostPlatform.isDarwin [
59 description = "SDL2 sound library";
60 mainProgram = "playsound";
61 platforms = platforms.unix;
62 license = licenses.zlib;
63 homepage = "https://www.icculus.org/SDL_sound/";