83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
43 lines
936 B
Nix
43 lines
936 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
efivar,
|
|
popt,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "efibootmgr";
|
|
version = "18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhboot";
|
|
repo = "efibootmgr";
|
|
rev = version;
|
|
hash = "sha256-DYYQGALEn2+mRHgqCJsA7OQCF7xirIgQlWexZ9uoKcg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
efivar
|
|
popt
|
|
];
|
|
|
|
makeFlags = [
|
|
"EFIDIR=nixos"
|
|
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
|
|
];
|
|
|
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
meta = {
|
|
description = "Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
|
|
homepage = "https://github.com/rhboot/efibootmgr";
|
|
changelog = "https://github.com/rhboot/efibootmgr/releases/tag/${src.rev}";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|