linuxKernel.packages.hpuefi-mod: init at 3.05
This commit is contained in:
parent
ff70d06359
commit
33825e3912
43
pkgs/os-specific/linux/hpuefi-mod/default.nix
Normal file
43
pkgs/os-specific/linux/hpuefi-mod/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchzip,
|
||||
kernel,
|
||||
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 = [
|
||||
"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 = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ tomodachi94 ];
|
||||
};
|
||||
})
|
@ -604,6 +604,8 @@ in {
|
||||
|
||||
hid-tmff2 = callPackage ../os-specific/linux/hid-tmff2 { };
|
||||
|
||||
hpuefi-mod = callPackage ../os-specific/linux/hpuefi-mod { };
|
||||
|
||||
drbd = callPackage ../os-specific/linux/drbd/driver.nix { };
|
||||
|
||||
} // lib.optionalAttrs config.allowAliases {
|
||||
|
Loading…
Reference in New Issue
Block a user