summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firmware/iwlwifi-4965-ucode/default.nix
blob: 266c7795d2302116e7cf6ebf39a0d1405b50a007 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{stdenv, fetchurl}:

stdenv.mkDerivation rec {
  name = "iwlwifi-4965-ucode-228.57.1.21";
  
  src = fetchurl {
    url = "wireless.kernel.org/en/users/Drivers/iwlegacy?action=AttachFile&do=get&target=${name}.tgz";
    name = "${name}.tgz";
    sha256 = "1rry0kpzszxk60h5gb94advzi009010xb332iyvfpaiwbj6aiyas";
  };
  
  buildPhase = "true";

  installPhase = ''
    mkdir -p "$out"
    chmod -x *
    cp * "$out"

    # The driver expects the `-1' in the file name.
    cd "$out"
    ln -s iwlwifi-4965.ucode iwlwifi-4965-1.ucode
  '';
  
  meta = {
    description = "Firmware for the Intel 4965ABG wireless card";

    longDescription = ''
      This package provides version 2 of the Intel wireless card
      firmware, for Linux up to 2.6.26.  It contains the
      `iwlwifi-4965-1.ucode' file, which is loaded by the `iw4965'
      driver found in recent kernels.
    '';

    homepage = http://intellinuxwireless.org/;
  };
}