depot/third_party/nixpkgs/pkgs/development/libraries/libsoundio/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
950 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, alsa-lib, 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 ]
++ lib.optionals stdenv.hostPlatform.isLinux [ libpulseaudio alsa-lib ]
++ lib.optional stdenv.hostPlatform.isDarwin AudioUnit;
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
"-DBUILD_TESTS=OFF"
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.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 ];
};
}