2010-08-02 14:57:57 +01:00
|
|
|
{ stdenv, fetchurl, kernel, perl }:
|
|
|
|
|
2008-01-28 19:34:00 +00:00
|
|
|
stdenv.mkDerivation {
|
2012-02-17 14:32:28 +00:00
|
|
|
name = "ndiswrapper-1.56-${kernel.version}";
|
2007-12-05 21:25:47 +00:00
|
|
|
|
|
|
|
# need at least .config and include
|
|
|
|
inherit kernel;
|
|
|
|
|
|
|
|
buildPhase = "
|
2008-06-15 16:11:19 +01: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 21:25:47 +00:00
|
|
|
";
|
|
|
|
|
2008-06-15 17:24:19 +01: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 18:30:34 +01:00
|
|
|
|
|
|
|
patchShebangs $out/sbin
|
2008-06-15 17:24:19 +01:00
|
|
|
'';
|
2008-06-15 16:11:19 +01:00
|
|
|
|
2007-12-05 21:25:47 +00:00
|
|
|
# should we use unstable?
|
2010-08-02 14:57:57 +01:00
|
|
|
src = fetchurl {
|
2011-06-19 13:29:41 +01:00
|
|
|
url = http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.56.tar.gz;
|
|
|
|
sha256 = "10yqg1a08v6z1qm1qr1v4rbhl35c90gzrazapr09vp372hky8f57";
|
2007-12-05 21:25:47 +00:00
|
|
|
};
|
|
|
|
|
2010-08-02 14:57:57 +01:00
|
|
|
buildInputs = [ kernel perl ];
|
2008-01-28 19:34:00 +00:00
|
|
|
|
|
|
|
# this is a patch against svn head, not stable version
|
|
|
|
patches = [./prefix.patch];
|
2007-12-05 21:25:47 +00:00
|
|
|
|
|
|
|
meta = {
|
2010-08-02 14:57:57 +01:00
|
|
|
description = "Ndis driver wrapper for the Linux kernel";
|
|
|
|
homepage = http://sourceforge.net/projects/ndiswrapper;
|
|
|
|
license = "GPL";
|
2007-12-05 21:25:47 +00:00
|
|
|
};
|
|
|
|
}
|