depot/third_party/nixpkgs/pkgs/by-name/ef/efibootmgr/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

56 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
efivar,
nix-update-script,
pkg-config,
popt,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "efibootmgr";
version = "18";
outputs = [
"out"
"man"
];
src = fetchFromGitHub {
owner = "rhboot";
repo = "efibootmgr";
rev = finalAttrs.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"}" ];
passthru = {
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
updateScript = nix-update-script { };
};
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/${finalAttrs.version}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "efibootmgr";
platforms = lib.platforms.linux;
};
})