efibootmgr: adopt; modernize (#319159)

* efibootmgr: migrate to by-name

* efibootmgr: format with nixfmt

* efibootmgr: adopt

* efibootmgr: modernize
This commit is contained in:
seth 2024-06-21 20:29:49 -04:00 committed by GitHub
parent 28efe23605
commit 66b060e0e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 9 deletions

View File

@ -1,4 +1,11 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, efivar, popt }:
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
efivar,
popt,
}:
stdenv.mkDerivation rec {
pname = "efibootmgr";
@ -13,20 +20,24 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ efivar popt ];
buildInputs = [
efivar
popt
];
makeFlags = [
"EFIDIR=nixos"
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
];
installFlags = [ "prefix=$(out)" ];
installFlags = [ "prefix=${placeholder "out"}" ];
meta = with lib; {
meta = {
description = "Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
homepage = "https://github.com/rhboot/efibootmgr";
license = licenses.gpl2Only;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
changelog = "https://github.com/rhboot/efibootmgr/releases/tag/${src.rev}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ getchoo ];
platforms = lib.platforms.linux;
};
}

View File

@ -7672,8 +7672,6 @@ with pkgs;
emscriptenStdenv = stdenv // { mkDerivation = buildEmscriptenPackage; };
efibootmgr = callPackage ../tools/system/efibootmgr { };
efivar = callPackage ../tools/system/efivar { };
eget = callPackage ../tools/misc/eget { };