blob: 398edd5f40fed69959994818a1582185eda8f64a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{
lib,
stdenv,
fetchurl,
alsa-topology-conf,
alsa-ucm-conf,
testers,
directoryListingUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "alsa-lib";
version = "1.2.16.1";
src = fetchurl {
url = "mirror://alsa/lib/alsa-lib-${finalAttrs.version}.tar.bz2";
hash = "sha256-90Dbf0iCVZRP/UQoQW7jOQqWdChWkWQz30aMKBQ2SA4=";
};
patches = [
# Add a "libs" field to the syntax recognized in the /etc/asound.conf file.
# The nixos modules for pulseaudio, jack, and pipewire are leveraging this
# "libs" field to declare locations for both native and 32bit plugins, in
# order to support apps with 32bit sound running on x86_64 architecture.
./alsa-plugin-conf-multilib.patch
];
enableParallelBuilding = true;
postInstall = ''
ln -s ${alsa-ucm-conf}/share/alsa/{ucm,ucm2} $out/share/alsa
ln -s ${alsa-topology-conf}/share/alsa/topology $out/share/alsa
'';
outputs = [
"out"
"dev"
];
passthru = {
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
updateScript = directoryListingUpdater {
url = "https://www.alsa-project.org/files/pub/lib/";
};
};
meta = {
homepage = "http://www.alsa-project.org/";
changelog = "https://github.com/alsa-project/alsa-lib/releases/tag/v${finalAttrs.version}";
description = "ALSA, the Advanced Linux Sound Architecture libraries";
mainProgram = "aserver";
longDescription = ''
The Advanced Linux Sound Architecture (ALSA) provides audio and
MIDI functionality to the Linux-based operating system.
'';
license = lib.licenses.lgpl21Plus;
pkgConfigModules = [
"alsa"
"alsa-topology"
];
platforms = with lib.platforms; linux ++ freebsd;
maintainers = with lib.maintainers; [
nick-linux
];
};
})
|