Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
directoryListingUpdater,
|
|
fetchurl,
|
|
lib,
|
|
stdenvNoCC,
|
|
coreutils,
|
|
kmod,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "alsa-ucm-conf";
|
|
version = "1.2.14";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://alsa/lib/alsa-ucm-conf-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-MumAn1ktkrl4qhAy41KTwzuNDx7Edfk3Aiw+6aMGnCE=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
substituteInPlace ucm2/lib/card-init.conf \
|
|
--replace-fail "/bin/rm" "${coreutils}/bin/rm" \
|
|
--replace-fail "/bin/mkdir" "${coreutils}/bin/mkdir"
|
|
''
|
|
+ lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
|
|
substituteInPlace ucm2/common/ctl/led.conf \
|
|
--replace-fail '/sbin/modprobe' '${kmod}/bin/modprobe'
|
|
''
|
|
+ ''
|
|
|
|
mkdir -p $out/share/alsa
|
|
cp -r ucm ucm2 $out/share/alsa
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = directoryListingUpdater {
|
|
url = "https://www.alsa-project.org/files/pub/lib/";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://www.alsa-project.org/";
|
|
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 = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
roastiek
|
|
mvs
|
|
];
|
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.freebsd;
|
|
};
|
|
})
|