Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "radeon-aruba-firmware";
srcs = [
(fetchurl { url = "http://people.freedesktop.org/~agd5f/radeon_ucode/ARUBA_me.bin"; sha256 = "1hsrx2wh627rnakgprzznwq8wfzykm1vjg6mmclj56yz182cxcni"; })
(fetchurl { url = "http://people.freedesktop.org/~agd5f/radeon_ucode/ARUBA_pfp.bin"; sha256 = "0hxlqqqbga9jl71pmyqm0ladvrm350pqp1kxbmwib4pkd6zs7ybh"; })
(fetchurl { url = "http://people.freedesktop.org/~agd5f/radeon_ucode/ARUBA_rlc.bin"; sha256 = "1vvnqflc871c1wigzvhrqdmcqzrsxy2g3wc9cbzd810cx1bghnd7"; })
];
unpackPhase = "true";
installPhase = ''
for i in $srcs; do
basenamebin=$(basename $i)
install -D $i $out/radeon/$(echo $basenamebin | cut -d'-' -f 2)
done
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.