2013-03-24 11:45:00 +00:00
|
|
|
{stdenv, fetchurl, kernelDev}:
|
2008-01-12 22:17:46 +00:00
|
|
|
|
2008-05-22 13:01:24 +01:00
|
|
|
let version = "1.2.25"; in
|
|
|
|
|
2008-02-21 22:22:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-03-24 11:45:00 +00:00
|
|
|
name = "iwlwifi-${version}-${kernelDev.version}";
|
2008-01-12 22:17:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-22 13:01:24 +01:00
|
|
|
url = "http://www.intellinuxwireless.org/iwlwifi/downloads/iwlwifi-${version}.tgz";
|
2008-02-21 22:22:57 +00:00
|
|
|
sha256 = "09fjy0swcyd77fdp8x2825wj5cd73hwbzl8mz9sy2ha21p1qwq1d";
|
2008-01-12 22:17:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace scripts/generate_compatible \
|
|
|
|
--replace '/usr/bin/env /bin/bash' $shell
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /sbin/depmod true
|
|
|
|
|
|
|
|
# Urgh, we need the complete kernel sources for some header
|
|
|
|
# files. So unpack the original kernel source tarball and copy
|
|
|
|
# the configured include directory etc. on top of it.
|
2013-03-24 11:45:00 +00:00
|
|
|
kernelVersion=$(cd ${kernelDev}/lib/modules && ls)
|
|
|
|
kernelBuild=$(echo ${kernelDev}/lib/modules/$kernelVersion/source)
|
|
|
|
tar xvfj ${kernelDev.src}
|
2008-01-12 22:17:46 +00:00
|
|
|
kernelSource=$(echo $(pwd)/linux-*)
|
|
|
|
cp -prd $kernelBuild/* $kernelSource
|
|
|
|
|
|
|
|
makeFlags=KSRC=$kernelSource
|
|
|
|
make $makeFlags || true
|
|
|
|
make $makeFlags
|
|
|
|
|
2008-01-12 23:35:23 +00:00
|
|
|
installFlags=KMISC=$out/lib/modules/$kernelVersion/misc
|
2008-01-12 22:17:46 +00:00
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Intel Wireless WiFi Link drivers for Linux";
|
|
|
|
homepage = http://www.intellinuxwireless.org/;
|
2008-02-21 22:22:57 +00:00
|
|
|
license = "GPLv2";
|
2008-01-12 22:17:46 +00:00
|
|
|
};
|
|
|
|
}
|