2024-06-24 18:47:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
efivar,
|
|
|
|
popt,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "efibootmgr";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhboot";
|
|
|
|
repo = "efibootmgr";
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-DYYQGALEn2+mRHgqCJsA7OQCF7xirIgQlWexZ9uoKcg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
efivar
|
|
|
|
popt
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
makeFlags = [
|
|
|
|
"EFIDIR=nixos"
|
|
|
|
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rhboot/efibootmgr";
|
2024-06-24 18:47:55 +00:00
|
|
|
changelog = "https://github.com/rhboot/efibootmgr/releases/tag/${src.rev}";
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|