diff --git a/pkgs/by-name/pine64-alsa-ucm/package.nix b/pkgs/by-name/pine64-alsa-ucm/package.nix index f404785a2..4ed194705 100644 --- a/pkgs/by-name/pine64-alsa-ucm/package.nix +++ b/pkgs/by-name/pine64-alsa-ucm/package.nix @@ -18,8 +18,13 @@ stdenv.mkDerivation { installPhase = '' runHook preInstall - mkdir -p $out/share/alsa - cp -R ucm2 $out/share/alsa/ucm2 + mkdir -p $out/share/alsa/ucm2/{Allwinner/A64,Rockchip/rk3399/} + cp -R ucm2/PinePhone $out/share/alsa/ucm2/Allwinner/A64/ + cp -R ucm2/PinePhonePro $out/share/alsa/ucm2/Rockchip/rk3399/ + + mkdir -p $out/share/alsa/ucm2/conf.d/simple-card + ln -s ../../Rockchip/rk3399/PinePhonePro/PinePhonePro.conf $out/share/alsa/ucm2/conf.d/simple-card/PinePhonePro.conf + ln -s ../../Allwinner/A64/PinePhone/PinePhone.conf $out/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf runHook postInstall '';