mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 01:15:51 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
80 lines
1.5 KiB
Nix
80 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
libpulseaudio,
|
|
alsa-lib,
|
|
libcap,
|
|
CoreAudio,
|
|
CoreServices,
|
|
AudioUnit,
|
|
usePulseAudio,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.2.2";
|
|
pname = "libao";
|
|
|
|
# the github mirror is more up to date than downloads.xiph.org
|
|
src = fetchFromGitHub {
|
|
owner = "xiph";
|
|
repo = "libao";
|
|
rev = version;
|
|
sha256 = "0svgk4sc9kdhcsfyvbvgm5vpbg3sfr6z5rliflrw49v3x2i4vxq5";
|
|
};
|
|
|
|
patches = [
|
|
# add header time.h for nanosecond
|
|
(fetchpatch {
|
|
name = "nanosecond-header.patch";
|
|
url = "https://github.com/xiph/libao/commit/1f998f5d6d77674dad01b181811638578ad68242.patch";
|
|
hash = "sha256-cvlyhQq1YS4pVya44LfsKD1R6iSOONsHJGRbP5LlanQ=";
|
|
})
|
|
];
|
|
|
|
configureFlags = [
|
|
"--disable-broken-oss"
|
|
"--enable-alsa-mmap"
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"man"
|
|
"doc"
|
|
];
|
|
|
|
buildInputs =
|
|
[ ]
|
|
++ lib.optional usePulseAudio libpulseaudio
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
alsa-lib
|
|
libcap
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
CoreAudio
|
|
CoreServices
|
|
AudioUnit
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
meta = with lib; {
|
|
longDescription = ''
|
|
Libao is Xiph.org's cross-platform audio library that allows
|
|
programs to output audio using a simple API on a wide variety of
|
|
platforms.
|
|
'';
|
|
homepage = "https://xiph.org/ao/";
|
|
license = licenses.gpl2;
|
|
maintainers = [ ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|