nixpkgs/pkgs/development/libraries/libsoundio/default.nix

30 lines
810 B
Nix
Raw Normal View History

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