about summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorCillian de Roiste <cillian.deroiste@gmail.com>2012-01-06 18:42:39 +0000
committerCillian de Roiste <cillian.deroiste@gmail.com>2012-01-06 18:42:39 +0000
commit9686b7def604b1bc4422aa9eb384a423a340951f (patch)
treea80948d4dcf7a318d7a9f65242e954c0355db734 /pkgs/os-specific/linux
parentd7edd1e22c91f772088e610238ca6818ad988c96 (diff)
Adding a single expression to provide all ralink firmware, if there are no objections this could replace all the rt* firmware expressions
svn path=/nixpkgs/trunk/; revision=31365
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/firmware/ralink/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/firmware/ralink/default.nix b/pkgs/os-specific/linux/firmware/ralink/default.nix
new file mode 100644
index 0000000000000..23513d2bf8854
--- /dev/null
+++ b/pkgs/os-specific/linux/firmware/ralink/default.nix
@@ -0,0 +1,33 @@
+{stdenv, fetchsvn }:
+
+# Upstream is http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git
+
+stdenv.mkDerivation {
+  name = "ralink-fw-r17279";
+
+  src = fetchsvn {
+    url = svn://svn.debian.org/kernel/dists/trunk/firmware-nonfree/ralink;
+    rev = 17279;
+    sha256 = "06nc6w3xcrxzcai7gaf27k0v8k2xbq3imzpgc02rbxv5q5flxh65";
+  };
+
+  unpackPhase = "true";
+  
+  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 $src/*.bin $out
+    cp $src/LICENSE $out/ralink.LICENSE
+  '';
+  
+  meta = {
+    description = "Firmware for the Ralink wireless cards";
+    homepage = http://www.ralinktech.com/;
+    license = "non-free";
+  };
+}