From d6936f47db661e77404577ae19adee69abd56109 Mon Sep 17 00:00:00 2001 From: aske Date: Mon, 5 Sep 2016 02:32:31 +0300 Subject: [PATCH] pcaudiolib: init at 2016-07-19 --- .../libraries/pcaudiolib/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/pcaudiolib/default.nix diff --git a/pkgs/development/libraries/pcaudiolib/default.nix b/pkgs/development/libraries/pcaudiolib/default.nix new file mode 100644 index 000000000000..ccb7d4179df4 --- /dev/null +++ b/pkgs/development/libraries/pcaudiolib/default.nix @@ -0,0 +1,29 @@ +{ stdenv, lib, fetchFromGitHub, autoconf, automake, which, libtool, pkgconfig, + alsaLib, portaudio, + pulseaudioSupport ? true, libpulseaudio }: + +stdenv.mkDerivation rec { + name = "pcaudiolib-${version}"; + version = "2016-07-19"; + + src = fetchFromGitHub { + owner = "rhdunn"; + repo = "pcaudiolib"; + rev = "4f836ea909bdaa8a6e0e89c587efc745b546b459"; + sha256 = "0z99nh4ibb9md2cd21762n1dmv6jk988785s1cxd8lsy4hp4pwfa"; + }; + + nativeBuildInputs = [ autoconf automake which libtool pkgconfig ]; + + buildInputs = [ portaudio alsaLib ] ++ lib.optional pulseaudioSupport libpulseaudio; + + preConfigure = "./autogen.sh"; + + meta = with stdenv.lib; { + description = "Provides a C API to different audio devices"; + homepage = "https://github.com/rhdunn/pcaudiolib"; + license = licenses.gpl3; + maintainers = with maintainers; [ aske ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0102a4d97ec8..a2efa372ede6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9015,6 +9015,10 @@ in pangoxsl = callPackage ../development/libraries/pangoxsl { }; + pcaudiolib = callPackage ../development/libraries/pcaudiolib { + pulseaudioSupport = config.pulseaudio or true; + }; + pcg_c = callPackage ../development/libraries/pcg-c { }; pcl = callPackage ../development/libraries/pcl {