22 lines
514 B
Nix
22 lines
514 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
alsa-ucm-conf,
|
|
}: (alsa-ucm-conf.overrideAttrs (oldAttrs: rec {
|
|
version = "3";
|
|
|
|
src_asahi = fetchFromGitHub {
|
|
# tracking: https://github.com/AsahiLinux/PKGBUILDs/blob/main/alsa-ucm-conf-asahi/PKGBUILD
|
|
owner = "AsahiLinux";
|
|
repo = "alsa-ucm-conf-asahi";
|
|
rev = "v${version}";
|
|
hash = "sha256-TCCT0AJx0SdnTzzBaV94zuD2hrPqvk+9vTTuEQmpJjc=";
|
|
};
|
|
|
|
postInstall =
|
|
oldAttrs.postInstall
|
|
or ""
|
|
+ ''
|
|
cp -r ${src_asahi}/ucm2 $out/share/alsa
|
|
'';
|
|
}))
|