2012-01-03 23:02:34 +01:00
|
|
|
{stdenv, fetchsvn }:
|
2011-06-19 21:47:10 +02:00
|
|
|
|
2012-01-03 23:02:34 +01:00
|
|
|
# Upstream is http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-06-19 21:47:10 +02:00
|
|
|
name = "rt2860-fw-26";
|
2012-01-03 23:02:34 +01:00
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = svn://svn.debian.org/kernel/dists/trunk/firmware-nonfree/ralink;
|
|
|
|
rev = 17279;
|
|
|
|
sha256 = "06nc6w3xcrxzcai7gaf27k0v8k2xbq3imzpgc02rbxv5q5flxh65";
|
2011-06-19 21:47:10 +02:00
|
|
|
};
|
|
|
|
|
2012-01-03 23:02:34 +01:00
|
|
|
unpackPhase = "true";
|
2011-06-19 21:47:10 +02:00
|
|
|
|
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
# Installation copies the firmware AND the license. The license
|
|
|
|
# says: "Your rights to redistribute the Software shall be
|
|
|
|
# contingent upon your installation of this Agreement in its
|
|
|
|
# entirety in the same directory as the Software."
|
2012-01-03 23:02:34 +01:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2012-01-03 23:02:34 +01:00
|
|
|
cp $src/rt2860.bin $out
|
|
|
|
cp $src/LICENSE $out/rt2860.LICENSE
|
|
|
|
'';
|
2011-06-19 21:47:10 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Firmware for the Ralink RT2860 wireless cards";
|
|
|
|
homepage = http://www.ralinktech.com/;
|
|
|
|
license = "non-free";
|
|
|
|
};
|
|
|
|
}
|