2008-01-28 20:34:00 +01:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
2008-06-15 17:11:19 +02:00
|
|
|
name = "ndiswrapper-1.53-stable";
|
2007-12-05 22:25:47 +01:00
|
|
|
|
|
|
|
# need at least .config and include
|
|
|
|
inherit kernel;
|
|
|
|
|
|
|
|
buildPhase = "
|
2008-06-15 17:11:19 +02:00
|
|
|
echo make KBUILD=$(echo \$kernel/lib/modules/*/build);
|
|
|
|
echo -n $kernel/lib/modules/*/build > kbuild_path
|
|
|
|
make KBUILD=$(echo \$kernel/lib/modules/*/build);
|
2007-12-05 22:25:47 +01:00
|
|
|
";
|
|
|
|
|
2008-06-15 18:24:19 +02:00
|
|
|
installPhase = ''
|
|
|
|
make install KBUILD=$(cat kbuild_path) DESTDIR=$out
|
|
|
|
mv $out/usr/sbin/* $out/sbin/
|
|
|
|
mv $out/usr/share $out/
|
|
|
|
rm -r $out/usr
|
2008-06-15 19:30:34 +02:00
|
|
|
|
|
|
|
patchShebangs $out/sbin
|
2008-06-15 18:24:19 +02:00
|
|
|
'';
|
2008-06-15 17:11:19 +02:00
|
|
|
|
2007-12-05 22:25:47 +01:00
|
|
|
# should we use unstable?
|
|
|
|
src = args.fetchurl {
|
2008-06-15 17:11:19 +02:00
|
|
|
url = http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.53.tar.gz;
|
|
|
|
sha256 = "00622nxa3q9n8v7qdz274d0nzz9r13lx77xi27s5bnk0mkila03q";
|
2007-12-05 22:25:47 +01:00
|
|
|
};
|
|
|
|
|
2008-06-15 19:30:34 +02:00
|
|
|
buildInputs =[kernel perl];
|
2008-01-28 20:34:00 +01:00
|
|
|
|
|
|
|
# this is a patch against svn head, not stable version
|
|
|
|
patches = [./prefix.patch];
|
2007-12-05 22:25:47 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ndis driver wrapper for the Linux kernel";
|
|
|
|
homepage = http://sourceforge.net/projects/ndiswrapper;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|