depot/third_party/nixpkgs/pkgs/development/libraries/libsoundio/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

29 lines
810 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, alsaLib, libjack2, libpulseaudio, AudioUnit }:
stdenv.mkDerivation rec {
version = "2.0.0";
pname = "libsoundio";
src = fetchFromGitHub {
owner = "andrewrk";
repo = "libsoundio";
rev = version;
sha256 = "12l4rvaypv87vigdrmjz48d4d6sq4gfxf5asvnc4adyabxb73i4x";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libjack2 libpulseaudio ]
++ lib.optional stdenv.isLinux alsaLib
++ lib.optional stdenv.isDarwin AudioUnit;
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes";
meta = with lib; {
description = "Cross platform audio input and output";
homepage = "http://libsound.io/";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.andrewrk ];
};
}