mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Fixed building and aggregating modules for not-installed kernel version
svn path=/nixpkgs/trunk/; revision=10226
This commit is contained in:
parent
f22d19c128
commit
12ea9ddea2
@ -14,6 +14,7 @@ let
|
||||
cat config-host.mak
|
||||
'') [minInit];
|
||||
preConfigure = FullDepEntry (''
|
||||
sed -e 's/`uname -r`/'"$(basename ${kernel}/lib/modules/*)"'/' -i install.sh
|
||||
sed -e '/kernel_path=/akernel_path=$out$kernel_path' -i install.sh
|
||||
sed -e '/depmod/d' -i install.sh
|
||||
cat install.sh
|
||||
|
@ -18,7 +18,7 @@ done
|
||||
rm -rf nix-support
|
||||
cd lib/modules/
|
||||
rm */modules.*
|
||||
MODULE_DIR=$PWD/ depmod -a
|
||||
MODULE_DIR=$PWD/ depmod -a *
|
||||
cd $out/
|
||||
'') [minInit addInputs defEnsureDir];
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user