mirror of
				https://github.com/materusPL/Nixerus.git
				synced 2025-10-31 04:30:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			763 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			763 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { 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/lib
 | |
|     mv lib/firmware/updates $out/lib/firmware
 | |
|   '';
 | |
| 
 | |
|   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;
 | |
|   };
 | |
| }
 |