Author: cillian
Date: Sun Jun 19 19:47:10 2011
New Revision: 27496
URL: https://svn.nixos.org/websvn/nix/?rev=27496&sc=1

Log:
Adding the firmware for ralink rt2860 cards e.g. Asus EEE 1000

Added:
   nixpkgs/trunk/pkgs/os-specific/linux/firmware/rt2860/
   nixpkgs/trunk/pkgs/os-specific/linux/firmware/rt2860/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/os-specific/linux/firmware/rt2860/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/os-specific/linux/firmware/rt2860/default.nix    Sun Jun 
19 19:47:10 2011        (r27496)
@@ -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";
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Jun 19 12:29:41 
2011        (r27495)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Jun 19 19:47:10 
2011        (r27496)
@@ -5564,6 +5564,8 @@
 
   rfkill = callPackage ../os-specific/linux/rfkill { };
 
+  rt2860fw = callPackage ../os-specific/linux/firmware/rt2860 { };
+
   rt2870fw = callPackage ../os-specific/linux/firmware/rt2870 { };
 
   rt73fw = callPackage ../os-specific/linux/firmware/rt73 { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to