uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/development/libraries/audio/rtaudio/default.nix
Normal file
49
pkgs/development/libraries/audio/rtaudio/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, config
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, alsaSupport ? stdenv.hostPlatform.isLinux
|
||||
, alsa-lib
|
||||
, pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux
|
||||
, libpulseaudio
|
||||
, jackSupport ? true
|
||||
, jack
|
||||
, coreaudioSupport ? stdenv.hostPlatform.isDarwin
|
||||
, CoreAudio
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rtaudio";
|
||||
version = "5.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thestk";
|
||||
repo = "rtaudio";
|
||||
rev = version;
|
||||
sha256 = "0xvahlfj3ysgsjsp53q81hayzw7f99n1g214gh7dwdr52kv2l987";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = lib.optional alsaSupport alsa-lib
|
||||
++ lib.optional pulseaudioSupport libpulseaudio
|
||||
++ lib.optional jackSupport jack
|
||||
++ lib.optional coreaudioSupport CoreAudio;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DRTAUDIO_API_ALSA=${if alsaSupport then "ON" else "OFF"}"
|
||||
"-DRTAUDIO_API_PULSE=${if pulseaudioSupport then "ON" else "OFF"}"
|
||||
"-DRTAUDIO_API_JACK=${if jackSupport then "ON" else "OFF"}"
|
||||
"-DRTAUDIO_API_CORE=${if coreaudioSupport then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A set of C++ classes that provide a cross platform API for realtime audio input/output";
|
||||
homepage = "https://www.music.mcgill.ca/~gary/rtaudio/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ magnetophon ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue