mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Merge pull request #42516 from repos-holder/master
nvidia-x11: pass kernel.modDirVersion
This commit is contained in:
commit
74f706d6cc
@ -17,7 +17,6 @@ buildPhase() {
|
||||
# Create the module.
|
||||
echo "Building linux driver against kernel: $kernel";
|
||||
cd kernel
|
||||
kernelVersion=$(cd $kernel/lib/modules && ls)
|
||||
sysSrc=$(echo $kernel/lib/modules/$kernelVersion/source)
|
||||
sysOut=$(echo $kernel/lib/modules/$kernelVersion/build)
|
||||
unset src # used by the nv makefile
|
||||
|
@ -55,6 +55,7 @@ let
|
||||
outputDev = if libsOnly then null else "bin";
|
||||
|
||||
kernel = if libsOnly then null else kernel.dev;
|
||||
kernelVersion = if libsOnly then null else kernel.modDirVersion;
|
||||
|
||||
hardeningDisable = [ "pic" "format" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user