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
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
symlinkJoin,
|
|
alsa-ucm-conf,
|
|
}:
|
|
let
|
|
alsa-ucm-conf-asahi = stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "alsa-ucm-conf-asahi";
|
|
version = "8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AsahiLinux";
|
|
repo = "alsa-ucm-conf-asahi";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-FPrAzscc1ICSCQSqULaGLqG4UCq8GZU9XLV7TUSBBRM=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
find ucm2/conf.d -type f -exec install -Dm644 "{}" "$out/share/alsa/{}" \;
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "ALSA Use Case Manager configuration (and topologies) for Apple silicon devices";
|
|
homepage = "https://github.com/AsahiLinux/alsa-ucm-conf-asahi";
|
|
changelog = "https://github.com/AsahiLinux/alsa-ucm-conf-asahi/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ normalcea ];
|
|
platforms = [ "aarch64-linux" ];
|
|
};
|
|
});
|
|
in
|
|
symlinkJoin {
|
|
inherit (alsa-ucm-conf-asahi)
|
|
pname
|
|
version
|
|
src
|
|
passthru
|
|
meta
|
|
;
|
|
paths = [
|
|
alsa-ucm-conf
|
|
alsa-ucm-conf-asahi
|
|
];
|
|
}
|