diff --git a/apple-silicon-support/packages/alsa-ucm-conf-asahi/default.nix b/apple-silicon-support/packages/alsa-ucm-conf-asahi/default.nix index ac9d15e3..a129d48f 100644 --- a/apple-silicon-support/packages/alsa-ucm-conf-asahi/default.nix +++ b/apple-silicon-support/packages/alsa-ucm-conf-asahi/default.nix @@ -1,19 +1,22 @@ { lib , fetchFromGitHub -, alsa-ucm-conf }: +, alsa-ucm-conf +}: -(alsa-ucm-conf.overrideAttrs (oldAttrs: rec { - version = "5"; +(alsa-ucm-conf.overrideAttrs (oldAttrs: let + versionAsahi = "5"; - src_asahi = fetchFromGitHub { + srcAsahi = fetchFromGitHub { # tracking: https://src.fedoraproject.org/rpms/alsa-ucm-asahi owner = "AsahiLinux"; repo = "alsa-ucm-conf-asahi"; - rev = "v${version}"; + rev = "v${versionAsahi}"; hash = "sha256-daUNz5oUrPfSMO0Tqq/WbtiLHMOtPeQQlI+juGrhTxw="; }; - +in { + name = "${oldAttrs.pname}-${oldAttrs.version}-asahi-${versionAsahi}"; + postInstall = oldAttrs.postInstall or "" + '' - cp -r ${src_asahi}/ucm2 $out/share/alsa + cp -r ${srcAsahi}/ucm2 $out/share/alsa ''; }))