mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Make blcr module use the configured kernel
svn path=/nixos/trunk/; revision=29413
This commit is contained in:
parent
7d982fd1bd
commit
229b99321f
@ -2,15 +2,14 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib) mkOption mkIf;
|
inherit (pkgs.lib) mkOption mkIf;
|
||||||
|
|
||||||
cfg = config.environment.blcr;
|
cfg = config.environment.blcr;
|
||||||
|
kernelPkgs = config.boot.kernelPackages;
|
||||||
blcrPkg = config.boot.kernelPackages.blcr;
|
blcrPkg = kernelPkgs.blcr;
|
||||||
|
|
||||||
insmod = "${pkgs.module_init_tools}/sbin/insmod";
|
insmod = "${pkgs.module_init_tools}/sbin/insmod";
|
||||||
rmmod = "${pkgs.module_init_tools}/sbin/rmmod";
|
rmmod = "${pkgs.module_init_tools}/sbin/rmmod";
|
||||||
|
|
||||||
modulesDir = "${blcrPkg}/lib/modules/${pkgs.linux.version}";
|
modulesDir = "${blcrPkg}/lib/modules/${kernelPkgs.kernel.version}";
|
||||||
blcr_imports_ko = "${modulesDir}/blcr_imports.ko";
|
blcr_imports_ko = "${modulesDir}/blcr_imports.ko";
|
||||||
blcr_ko = "${modulesDir}/blcr.ko";
|
blcr_ko = "${modulesDir}/blcr.ko";
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user