Merge pull request #239361 from rnhmjoj/pr-ath9k

ath9k-htc-blobless-firmware: use name expected by the kernel

authored by Adam Joseph and committed by GitHub 70ba337f de76a685

+9 -2
+9 -2
pkgs/os-specific/linux/firmware/ath9k/default.nix
··· 9 9 , enableUnstable ? false 10 10 }: 11 11 12 + let 13 + stableVersion = "1.4.0"; 14 + in 15 + 12 16 stdenv.mkDerivation (finalAttrs: { 13 17 pname = "ath9k-htc-blobless-firmware"; 14 - version = if enableUnstable then "unstable-2022-05-22" else "1.4.0"; 18 + version = if enableUnstable then "unstable-2022-05-22" else stableVersion; 15 19 16 20 src = fetchFromGitHub ({ 17 21 owner = "qca"; ··· 61 65 62 66 installPhase = '' 63 67 runHook preInstall 64 - install -Dt $out/lib/firmware/ath9k_htc/ target_firmware/*.fw 68 + install -Dt "$out/lib/firmware/ath9k_htc/" target_firmware/*.fw 69 + # make symlinks so that firmware will be automatically found 70 + ln -s htc_7010.fw "$out/lib/firmware/ath9k_htc/htc_7010-${stableVersion}.fw" 71 + ln -s htc_9271.fw "$out/lib/firmware/ath9k_htc/htc_9271-${stableVersion}.fw" 65 72 runHook postInstall 66 73 ''; 67 74