From 86b853e2750fbb6a03290ee0cf5c108f7b0cc4a9 Mon Sep 17 00:00:00 2001 From: romildo Date: Tue, 18 Apr 2017 11:48:23 -0300 Subject: [PATCH] efibootmgr: 13 -> 15 - Update to efibootmgr 15 - Add dependency on pkgconfig (listed as required in INSTALL) - Remove dependency on perl, pciutils and zlib - Set EFIDIR to 'nixos' (the same used in fwupdate) - Update homepage --- pkgs/tools/system/efibootmgr/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/system/efibootmgr/default.nix b/pkgs/tools/system/efibootmgr/default.nix index 11418919e413..31be8ab63f41 100644 --- a/pkgs/tools/system/efibootmgr/default.nix +++ b/pkgs/tools/system/efibootmgr/default.nix @@ -1,26 +1,29 @@ -{ stdenv, fetchFromGitHub, perl, efivar, pciutils, zlib, popt }: +{ stdenv, fetchFromGitHub, pkgconfig, efivar, popt }: stdenv.mkDerivation rec { name = "efibootmgr-${version}"; - version = "13"; + version = "15"; - buildInputs = [ perl efivar pciutils zlib popt ]; + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ efivar popt ]; src = fetchFromGitHub { owner = "rhinstaller"; repo = "efibootmgr"; rev = version; - sha256 = "1kwmvx111c3a5783kx3az76mkhpr1nsdx0yv09gp4k0hgzqlqj96"; + sha256 = "0z7h1dirp8za6lbbf4f3dzn7l1px891rdymhkbqc10yj6gi1jpqp"; }; NIX_CFLAGS_COMPILE = "-I${efivar}/include/efivar"; - NIX_LDFLAGS = "-lefiboot -lefivar -lpopt"; + + makeFlags = [ "EFIDIR=nixos" ]; installFlags = [ "prefix=$(out)" ]; meta = with stdenv.lib; { description = "A Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager"; - homepage = http://linux.dell.com/efibootmgr/; + homepage = https://github.com/rhinstaller/efibootmgr; license = licenses.gpl2; platforms = platforms.linux; };