Skip to content

Instantly share code, notes, and snippets.

@matejc
Created July 3, 2013 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matejc/5917979 to your computer and use it in GitHub Desktop.
Save matejc/5917979 to your computer and use it in GitHub Desktop.
{ 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