* Fix for compiling on Linux >= 2.6.24.

svn path=/nixpkgs/trunk/; revision=11929
This commit is contained in:
Eelco Dolstra 2008-05-29 13:22:12 +00:00
parent e466241a8d
commit 961eddeb7d
2 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,11 @@ unpackFile() {
}
patchPhase() {
(cd usr/src/nv && patch -p3 < $patch)
}
buildPhase=myBuildPhase
myBuildPhase() {
echo "Building linux driver against kernel: " $kernel;

View File

@ -15,6 +15,13 @@ stdenv.mkDerivation {
sha256 = "0bxxjp30bysqaviqjq05vmrhp17w3qn94iwwwj074qmi710zffyy";
};
# Fix for compiling on Linux >= 2.6.24.
patch = fetchurl {
url = "http://www.nvnews.net/vbulletin/attachment.php?s=41498f047cfc027419df58a2559e9a7f&attachmentid=30771&d=1205875946";
sha256 = "17bb9yzkys1fsvf0mri3kpj1zvvqwvdcaszcl8ax9jfkxbd47m9n";
name = "nvidia-2.5.24.patch";
};
#xenPatch = ./nvidia-2.6.24-xen.patch;
inherit versionNumber kernel;