From 12ea9ddea2f1ef53403a24cf4c9740e640b6e126 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 19 Jan 2008 11:00:09 +0000 Subject: [PATCH] Fixed building and aggregating modules for not-installed kernel version svn path=/nixpkgs/trunk/; revision=10226 --- pkgs/os-specific/linux/kqemu/1.3.0pre11.nix | 1 + pkgs/os-specific/linux/module-init-tools/aggregator.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix b/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix index cb3aa90444c1..20e738e06928 100644 --- a/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix +++ b/pkgs/os-specific/linux/kqemu/1.3.0pre11.nix @@ -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 diff --git a/pkgs/os-specific/linux/module-init-tools/aggregator.nix b/pkgs/os-specific/linux/module-init-tools/aggregator.nix index 98c45d7391f9..ed30be250d23 100644 --- a/pkgs/os-specific/linux/module-init-tools/aggregator.nix +++ b/pkgs/os-specific/linux/module-init-tools/aggregator.nix @@ -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