8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
31 lines
766 B
Nix
31 lines
766 B
Nix
{ lib, stdenv, fwts, kernel }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fwts-efi-runtime";
|
|
version = "${fwts.version}-${kernel.version}";
|
|
|
|
inherit (fwts) src;
|
|
|
|
sourceRoot = "source/efi_runtime";
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile --replace \
|
|
'/lib/modules/$(KVER)/build' \
|
|
'${kernel.dev}/lib/modules/${kernel.modDirVersion}/build'
|
|
'';
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
inherit (fwts.meta) homepage license;
|
|
description = fwts.meta.description + "(efi-runtime kernel module)";
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|