Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
fetchzip,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
lib,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "hpuefi-mod";
|
|
version = "3.05";
|
|
|
|
src = fetchzip {
|
|
url = "https://ftp.hp.com/pub/softpaq/sp150501-151000/sp150953.tgz";
|
|
hash = "sha256-ofzqu5Y2g+QU0myJ4SF39ZJGXH1zXzX1Ys2FhXVTQKE=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
strictDeps = true;
|
|
|
|
makeFlags = kernelModuleMakeFlags ++ [
|
|
"KVERS=${kernel.modDirVersion}"
|
|
"KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
"DESTDIR=$(out)"
|
|
];
|
|
|
|
unpackPhase = ''
|
|
tar -xzf "$src/non-rpms/hpuefi-mod-${finalAttrs.version}.tgz"
|
|
cd hpuefi-mod-${finalAttrs.version}
|
|
'';
|
|
|
|
prePatch = ''
|
|
substituteInPlace "Makefile" \
|
|
--replace depmod \#
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://ftp.hp.com/pub/caps-softpaq/cmit/linuxtools/HP_LinuxTools.html";
|
|
description = "Kernel module for managing BIOS settings and updating BIOS firmware on supported HP computers";
|
|
license = lib.licenses.gpl2Only; # See "License" section in ./non-rpms/hpuefi-mod-*.tgz/README
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with lib.maintainers; [ tomodachi94 ];
|
|
};
|
|
})
|