tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libao: 1.2.0 -> 1.2.2
Peter Hoeg
8 years ago
d28c21bd
2f1a818d
+23
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libao
default.nix
+23
-14
pkgs/development/libraries/libao/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, pkgconfig, libpulseaudio, alsaLib, libcap
1
1
+
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig, libpulseaudio, alsaLib, libcap
2
2
, CoreAudio, CoreServices, AudioUnit
3
3
, usePulseAudio }:
4
4
5
5
stdenv.mkDerivation rec {
6
6
-
version = "1.2.0";
6
6
+
version = "1.2.2";
7
7
name = "libao-${version}";
8
8
-
src = fetchurl {
9
9
-
url = "http://downloads.xiph.org/releases/ao/${name}.tar.gz";
10
10
-
sha256 = "1bwwv1g9lchaq6qmhvj1pp3hnyqr64ydd4j38x94pmprs4d27b83";
8
8
+
9
9
+
# the github mirror is more up to date than downloads.xiph.org
10
10
+
src = fetchFromGitHub {
11
11
+
owner = "xiph";
12
12
+
repo = "libao";
13
13
+
rev = "${version}";
14
14
+
sha256 = "0svgk4sc9kdhcsfyvbvgm5vpbg3sfr6z5rliflrw49v3x2i4vxq5";
11
15
};
16
16
+
17
17
+
configureFlags = [
18
18
+
"--disable-broken-oss"
19
19
+
"--enable-alsa-mmap"
20
20
+
];
12
21
13
22
outputs = [ "out" "dev" "man" "doc" ];
14
23
15
15
-
buildInputs =
16
16
-
[ pkgconfig ] ++
17
17
-
lib.optional usePulseAudio libpulseaudio ++
18
18
-
lib.optional stdenv.isLinux alsaLib ++
19
19
-
lib.optional stdenv.isLinux libcap ++
24
24
+
buildInputs = [ ] ++
25
25
+
lib.optional usePulseAudio libpulseaudio ++
26
26
+
lib.optionals stdenv.isLinux [ alsaLib libcap ] ++
20
27
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
21
28
22
22
-
meta = {
29
29
+
nativeBuildInputs = [ autoreconfHook pkgconfig ];
30
30
+
31
31
+
meta = with stdenv.lib; {
23
32
longDescription = ''
24
33
Libao is Xiph.org's cross-platform audio library that allows
25
34
programs to output audio using a simple API on a wide variety of
26
35
platforms.
27
36
'';
28
37
homepage = https://xiph.org/ao/;
29
29
-
license = stdenv.lib.licenses.gpl2;
30
30
-
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
31
31
-
platforms = with stdenv.lib.platforms; unix;
38
38
+
license = licenses.gpl2;
39
39
+
maintainers = with maintainers; [ fuuzetsu ];
40
40
+
platforms = with platforms; unix;
32
41
};
33
42
}