fix formatting
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
{ stdenv, kernel }:
|
||||
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "cpuid_fault_emulation";
|
||||
version = "0.1";
|
||||
|
||||
|
||||
src = ./source;
|
||||
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
hardeningDisable = [
|
||||
"pic"
|
||||
"format"
|
||||
];
|
||||
|
||||
|
||||
# Patch the hardcoded host paths to point into the Nix store
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace '/lib/modules/$(KERNEL)/build' '${kernel.dev}/lib/modules/${kernel.modDirVersion}/build' \
|
||||
--replace '$(shell uname -r)' '${kernel.modDirVersion}'
|
||||
'';
|
||||
|
||||
|
||||
installPhase = ''
|
||||
install -D cpuid_fault_emulation.ko \
|
||||
$out/lib/modules/${kernel.modDirVersion}/extra/cpuid_fault_emulation.ko
|
||||
'';
|
||||
|
||||
|
||||
meta.platforms = [ "x86_64-linux" ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user