2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "alsa-ucm-conf";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.2.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "mirror://alsa/lib/${pname}-${version}.tar.bz2";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-OHwBzzDioWdte49ysmgc8hmrynDdHsKp4zrdW/P+roE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# TODO: Remove this patch in the next package upgrade
|
|
|
|
name = "rt1318-fix-one.patch";
|
|
|
|
url = "https://github.com/alsa-project/alsa-ucm-conf/commit/7e22b7c214d346bd156131f3e6c6a5900bbf116d.patch";
|
|
|
|
hash = "sha256-5X0ANXTSRnC9jkvMLl7lA5TBV3d1nwWE57DP6TwliII=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# TODO: Remove this patch in the next package upgrade
|
|
|
|
name = "rt1318-fix-two.patch";
|
|
|
|
url = "https://github.com/alsa-project/alsa-ucm-conf/commit/4e0fcc79b7d517a957e12f02ecae5f3c69fa94dc.patch";
|
|
|
|
hash = "sha256-cuZPEEqb8+d1Ak2tA+LVEh6gtGt1X+LiAnfFYMIDCXY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/alsa
|
|
|
|
cp -r ucm ucm2 $out/share/alsa
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://www.alsa-project.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ALSA Use Case Manager configuration";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The Advanced Linux Sound Architecture (ALSA) provides audio and
|
|
|
|
MIDI functionality to the Linux-based operating system.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.roastiek ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|