Author: viric
Date: Fri Jul  9 17:30:08 2010
New Revision: 22551
URL: https://svn.nixos.org/websvn/nix/?rev=22551&sc=1

Log:
Adding firmware for the wireless cards rt2870 (for a rt3072 hw in fact)

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

Added: nixpkgs/trunk/pkgs/os-specific/linux/firmware/rt2870/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/os-specific/linux/firmware/rt2870/default.nix    Fri Jul 
 9 17:30:08 2010        (r22551)
@@ -0,0 +1,26 @@
+{stdenv, fetchurl, unzip}:
+
+stdenv.mkDerivation {
+  name = "rt2870-fw-22";
+  src = fetchurl {
+    url = 
"http://www.ralinktech.com/download.php?t=U0wyRnpjMlYwY3k4eU1ERXdMekF6THpNeEwyUnZkMjVzYjJGa01UWXpPRGs1T0Rnek5pNTZhWEE5UFQxU1ZESTROekJmUm1seWJYZGhjbVZmVmpJeUM%3D";;
+    name = "RT2870_Firmware_V22.zip";
+    sha256 = 
"d24591a8529b0a609cc3c626ecee96484bb29b2c020260b82f6025459c11f263";
+  };
+
+  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; cp * $out";
+  
+  meta = {
+    description = "Firmware for the Ralink RT2870 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       Fri Jul  9 13:16:00 
2010        (r22550)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Fri Jul  9 17:30:08 
2010        (r22551)
@@ -6893,6 +6893,10 @@
     inherit fetchurl stdenv;
   };
 
+  rt2870fw = import ../os-specific/linux/firmware/rt2870 {
+    inherit fetchurl stdenv unzip;
+  };
+
   rt73fw = import ../os-specific/linux/firmware/rt73 {
     inherit fetchurl stdenv unzip;
   };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to