mirror of
https://github.com/materusPL/Nixerus.git
synced 2026-07-10 00:51:59 +00:00
amdgpu-pro-libs: add firmware, create update script
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{ pkgs, lib, stdenv, libdrm, dpkg, vulkan-loader, patchelf, fetchurl }:
|
||||
|
||||
let
|
||||
sources = import ./amdgpu-src.nix { inherit fetchurl; };
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "amdgpu-firmware";
|
||||
version = sources.version;
|
||||
|
||||
|
||||
|
||||
src = sources.bit64.amdgpu-dkms-firmware;
|
||||
|
||||
|
||||
|
||||
dontFixup = true;
|
||||
dontBuild = true;
|
||||
dontPatchELF = true;
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
];
|
||||
unpackPhase = ''
|
||||
dpkg -x $src .
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
ls -la usr/src
|
||||
mv usr/src/amdgpu-5.18.13-1577590.22.04 $out/lib
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "AMDGPU Firmware, needed to be in sync for AMF to work";
|
||||
homepage = "https://www.amd.com";
|
||||
license = licenses.unfreeRedistributableFirmware;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user