mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
libao: 1.2.0 -> 1.2.2
This commit is contained in:
parent
2f1a818d00
commit
d28c21bd6d
@ -1,33 +1,42 @@
|
|||||||
{ lib, stdenv, fetchurl, pkgconfig, libpulseaudio, alsaLib, libcap
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig, libpulseaudio, alsaLib, libcap
|
||||||
, CoreAudio, CoreServices, AudioUnit
|
, CoreAudio, CoreServices, AudioUnit
|
||||||
, usePulseAudio }:
|
, usePulseAudio }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.2.0";
|
version = "1.2.2";
|
||||||
name = "libao-${version}";
|
name = "libao-${version}";
|
||||||
src = fetchurl {
|
|
||||||
url = "http://downloads.xiph.org/releases/ao/${name}.tar.gz";
|
# the github mirror is more up to date than downloads.xiph.org
|
||||||
sha256 = "1bwwv1g9lchaq6qmhvj1pp3hnyqr64ydd4j38x94pmprs4d27b83";
|
src = fetchFromGitHub {
|
||||||
|
owner = "xiph";
|
||||||
|
repo = "libao";
|
||||||
|
rev = "${version}";
|
||||||
|
sha256 = "0svgk4sc9kdhcsfyvbvgm5vpbg3sfr6z5rliflrw49v3x2i4vxq5";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--disable-broken-oss"
|
||||||
|
"--enable-alsa-mmap"
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" "doc" ];
|
outputs = [ "out" "dev" "man" "doc" ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = [ ] ++
|
||||||
[ pkgconfig ] ++
|
lib.optional usePulseAudio libpulseaudio ++
|
||||||
lib.optional usePulseAudio libpulseaudio ++
|
lib.optionals stdenv.isLinux [ alsaLib libcap ] ++
|
||||||
lib.optional stdenv.isLinux alsaLib ++
|
|
||||||
lib.optional stdenv.isLinux libcap ++
|
|
||||||
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
|
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
|
||||||
|
|
||||||
meta = {
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Libao is Xiph.org's cross-platform audio library that allows
|
Libao is Xiph.org's cross-platform audio library that allows
|
||||||
programs to output audio using a simple API on a wide variety of
|
programs to output audio using a simple API on a wide variety of
|
||||||
platforms.
|
platforms.
|
||||||
'';
|
'';
|
||||||
homepage = https://xiph.org/ao/;
|
homepage = https://xiph.org/ao/;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
maintainers = with maintainers; [ fuuzetsu ];
|
||||||
platforms = with stdenv.lib.platforms; unix;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user