amdgpu-pro-libs: use same firmware version as rest of libs

This commit is contained in:
Mateusz Słodkowicz 2023-08-31 11:01:04 +02:00
parent 43527046c9
commit 5748882088
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 6 additions and 11 deletions

View File

@ -5,20 +5,15 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "amdgpu-firmware"; pname = "amdgpu-firmware";
version = "5.4.6"; version = sources.version;
src = fetchurl {
url ="https://repo.radeon.com/amdgpu/5.4.6/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms-firmware_5.18.13.50406-1580598.22.04_all.deb";
name = "amdgpu-firmware";
sha256 ="7701fbb95900c2502aba03f4d3d29f1caaa935191bf21012ecff7ffa0f631696";
};
src = sources.bit64.amdgpu-dkms-firmware;
passthru = { passthru = {
vcn = stdenv.mkDerivation rec { vcn = stdenv.mkDerivation rec {
pname = "amdgpu-firmware-vcn"; pname = "amdgpu-firmware-vcn";
version = sources.version; inherit src;
src = sources.bit64.amdgpu-dkms-firmware; inherit version;
inherit meta; inherit meta;
inherit unpackPhase; inherit unpackPhase;
inherit dontBuild; inherit dontBuild;
@ -50,8 +45,8 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out/lib/firmware/
mv usr/src/amdgpu-5.18.13-1580598.22.04 $out/lib mv lib/firmware/updates/amdgpu $out/lib/firmware/amdgpu
''; '';
meta = with lib; { meta = with lib; {