nixpkgs/pkgs/by-name/al/alsa-lib/package.nix

52 lines
1.5 KiB
Nix
Raw Normal View History

2021-06-10 02:22:58 +03:00
{ lib
, stdenv
, fetchurl
, alsa-topology-conf
, alsa-ucm-conf
, testers
2021-06-10 02:22:58 +03:00
}:
stdenv.mkDerivation (finalAttrs: {
2020-12-24 04:03:11 +03:00
pname = "alsa-lib";
2023-05-20 12:01:10 +03:00
version = "1.2.9";
2013-02-23 15:59:28 +04:00
src = fetchurl {
url = "mirror://alsa/lib/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
2023-05-20 12:01:10 +03:00
hash = "sha256-3JxkP9xMz9BXLMaFhY3UHgivtYPzBGCzF+QYgnX2FbI=";
};
2013-02-23 15:59:28 +04:00
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
];
2020-03-22 20:40:47 +03:00
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;
meta = with lib; {
homepage = "http://www.alsa-project.org/";
description = "ALSA, the Advanced Linux Sound Architecture libraries";
longDescription = ''
The Advanced Linux Sound Architecture (ALSA) provides audio and
MIDI functionality to the Linux-based operating system.
'';
2021-01-17 05:47:53 +03:00
license = licenses.lgpl21Plus;
pkgConfigModules = [ "alsa" "alsa-topology" ];
platforms = platforms.linux;
2021-12-19 22:12:08 +03:00
maintainers = with maintainers; [ l-as ];
};
})