2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fwts, kernel }:
|
2019-09-18 19:33:08 +02:00
|
|
|
|
|
|
|
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" ];
|
|
|
|
|
2022-02-10 02:58:55 +01:00
|
|
|
makeFlags = kernel.makeFlags ++ [
|
2019-09-18 19:33:08 +02:00
|
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-18 19:33:08 +02:00
|
|
|
inherit (fwts.meta) homepage license;
|
|
|
|
description = fwts.meta.description + "(efi-runtime kernel module)";
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|