about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2022-12-18 16:20:16 -0300
committerGitHub <noreply@github.com>2022-12-18 16:20:16 -0300
commitb83c2ee15c30b0628f2e32742cad045b2813ecc7 (patch)
tree9312e5d889ec0e5493b472c62281a704a8b9946e /pkgs/os-specific
parent0cd235bc689c2ddc6304b1291b2ffa8bac4d76ee (diff)
parent5fb679b3699982e6eef23f75afe08785f72c705b (diff)
Merge pull request #206697 from hmenke/sof-firmware
sof-firmware: 2.2.2 -> 2.2.3
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/firmware/sof-firmware/default.nix24
1 files changed, 10 insertions, 14 deletions
diff --git a/pkgs/os-specific/linux/firmware/sof-firmware/default.nix b/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
index 24ab894c9f062..cccdf997dbd4f 100644
--- a/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
+++ b/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
@@ -1,38 +1,34 @@
 { lib
+, fetchurl
 , stdenvNoCC
-, fetchFromGitHub
 }:
 
 stdenvNoCC.mkDerivation rec {
   pname = "sof-firmware";
-  version = "2.2.2";
+  version = "2.2.3";
 
-  src = fetchFromGitHub {
-    owner = "thesofproject";
-    repo = "sof-bin";
-    rev = "v${version}";
-    sha256 = "sha256-ztewE/8Mc0bbKbxmbJ2sBn3TysuM9hoaSgqrboy77oI=";
+  src = fetchurl {
+    url = "https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-v${version}.tar.gz";
+    sha256 = "sha256-WR/9ZvHisycDjJHt88hQK0FywdyFDP5EBQ6t+OT620I=";
   };
 
   dontFixup = true; # binaries must not be stripped or patchelfed
 
-  # There is no proper structure in the upstream repo.
-  # This needs to be adapted by hand for every new release.
   installPhase = ''
     runHook preInstall
-    cd "v2.2.x"
-    mkdir -p $out/lib/firmware/intel/sof{,-tplg}
-    cp -a sof-v2.2/* $out/lib/firmware/intel/sof
-    cp -a sof-v2.2.2/* $out/lib/firmware/intel/sof
-    cp -a sof-tplg-v2.2.1/* $out/lib/firmware/intel/sof-tplg
+    mkdir -p $out/lib/firmware/intel
+    cp -av sof-v${version} $out/lib/firmware/intel/sof
+    cp -av sof-tplg-v${version} $out/lib/firmware/intel/sof-tplg
     runHook postInstall
   '';
 
   meta = with lib; {
+    changelog = "https://github.com/thesofproject/sof-bin/releases/tag/v${version}";
     description = "Sound Open Firmware";
     homepage = "https://www.sofproject.org/";
     license = with licenses; [ bsd3 isc ];
     maintainers = with maintainers; [ lblasc evenbrenden hmenke ];
     platforms = with platforms; linux;
+    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
   };
 }