nixpkgs/pkgs/by-name/ef/efibootmgr/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
efivar,
2024-07-15 20:39:48 +03:00
nix-update-script,
2024-07-15 20:42:00 +03:00
pkg-config,
popt,
2024-07-15 20:42:00 +03:00
testers,
}:
2024-07-15 20:42:00 +03:00
stdenv.mkDerivation (finalAttrs: {
pname = "efibootmgr";
2022-10-31 17:25:09 +03:00
version = "18";
2024-07-20 05:07:20 +03:00
outputs = [
"out"
"man"
];
2015-06-19 08:34:43 +03:00
src = fetchFromGitHub {
2018-02-17 04:18:40 +03:00
owner = "rhboot";
2015-06-19 08:34:43 +03:00
repo = "efibootmgr";
2024-07-15 20:42:00 +03:00
rev = finalAttrs.version;
2022-10-31 17:25:09 +03:00
hash = "sha256-DYYQGALEn2+mRHgqCJsA7OQCF7xirIgQlWexZ9uoKcg=";
};
2022-10-31 17:25:09 +03:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [
efivar
popt
];
2022-10-31 17:25:09 +03:00
makeFlags = [
"EFIDIR=nixos"
"PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
];
2015-06-19 08:34:43 +03:00
installFlags = [ "prefix=${placeholder "out"}" ];
2024-07-15 20:39:48 +03:00
passthru = {
2024-07-15 20:42:00 +03:00
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
2024-07-15 20:39:48 +03:00
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";
2024-07-15 20:42:00 +03:00
changelog = "https://github.com/rhboot/efibootmgr/releases/tag/${finalAttrs.version}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ getchoo ];
2024-07-15 20:41:45 +03:00
mainProgram = "efibootmgr";
platforms = lib.platforms.linux;
};
2024-07-15 20:42:00 +03:00
})