mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
libpulseaudio,
|
|
alsa-lib,
|
|
libcap,
|
|
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
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|