summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorCillian de Roiste <cillian.deroiste@gmail.com>2011-06-19 19:47:10 +0000
committerCillian de Roiste <cillian.deroiste@gmail.com>2011-06-19 19:47:10 +0000
commit0137aa039f9ba7afe4a24fb15aa31e5266e07acf (patch)
tree57385e5929a7b9b216c6737dfaaa0ea80823f366 /pkgs/os-specific/linux
parenta358fe22d2100fef4b991bd6b7b973679d94ae94 (diff)
downloadnixlib-0137aa039f9ba7afe4a24fb15aa31e5266e07acf.tar
nixlib-0137aa039f9ba7afe4a24fb15aa31e5266e07acf.tar.gz
nixlib-0137aa039f9ba7afe4a24fb15aa31e5266e07acf.tar.bz2
nixlib-0137aa039f9ba7afe4a24fb15aa31e5266e07acf.tar.lz
nixlib-0137aa039f9ba7afe4a24fb15aa31e5266e07acf.tar.xz
nixlib-0137aa039f9ba7afe4a24fb15aa31e5266e07acf.tar.zst
nixlib-0137aa039f9ba7afe4a24fb15aa31e5266e07acf.zip
Adding the firmware for ralink rt2860 cards e.g. Asus EEE 1000
svn path=/nixpkgs/trunk/; revision=27496
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/firmware/rt2860/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/firmware/rt2860/default.nix b/pkgs/os-specific/linux/firmware/rt2860/default.nix
new file mode 100644
index 000000000000..70601f065ef4
--- /dev/null
+++ b/pkgs/os-specific/linux/firmware/rt2860/default.nix
@@ -0,0 +1,26 @@
+{stdenv, fetchurl, unzip}:
+
+stdenv.mkDerivation rec {
+  name = "rt2860-fw-26";
+  src = fetchurl {
+    url = "http://www.ralinktech.com/download.php?t=U0wyRnpjMlYwY3k4eU1ERXdMekF6THpNeEwyUnZkMjVzYjJGa01UWTBNamsyTVRBNE1pNTZhWEE5UFQxU1ZESTROakJmUm1seWJYZGhjbVZmVmpJMkM%3D";
+    name = "RT2860_Firmware_V26.zip";
+    sha256 = "0kvjd8kfnmh8jj35jd10pnr1z7a00ks4c317dnnzgkd86mmcg4px";
+  };
+
+  buildInputs = [ unzip ];
+  
+  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."
+  installPhase = "ensureDir $out/${name}; cp *.bin $out; cp *.txt $out/${name}";
+  
+  meta = {
+    description = "Firmware for the Ralink RT2860 wireless cards";
+    homepage = http://www.ralinktech.com/;
+    license = "non-free";
+  };
+}