mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
32 lines
748 B
Nix
32 lines
748 B
Nix
{ 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 = [
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit (fwts.meta) homepage license;
|
|
description = fwts.meta.description + "(efi-runtime kernel module)";
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|