nixpkgs/pkgs/os-specific/linux/fwts/module.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
766 B
Nix
Raw Normal View History

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