efibootmgr: 0.12 -> 13

Fixes glib 2.24 build issues
This commit is contained in:
obadz 2016-08-21 12:01:26 +01:00
parent d890e82794
commit 15b07f4b8e

View File

@ -1,27 +1,22 @@
{ stdenv, fetchFromGitHub, perl, efivar, pciutils, zlib }:
{ stdenv, fetchFromGitHub, perl, efivar, pciutils, zlib, popt }:
stdenv.mkDerivation rec {
name = "efibootmgr-${version}";
version = "0.12";
version = "13";
buildInputs = [ perl efivar pciutils zlib ];
buildInputs = [ perl efivar pciutils zlib popt ];
src = fetchFromGitHub {
owner = "rhinstaller";
repo = "efibootmgr";
rev = name;
sha256 = "0fmrsp67dln76896fvxalj2pamyp9dszf32kl06wdfi0km42z8sh";
rev = version;
sha256 = "1kwmvx111c3a5783kx3az76mkhpr1nsdx0yv09gp4k0hgzqlqj96";
};
NIX_CFLAGS_COMPILE = "-I${efivar}/include/efivar";
NIX_LDFLAGS = "-lefiboot -lefivar";
NIX_LDFLAGS = "-lefiboot -lefivar -lpopt";
postPatch = ''
substituteInPlace "./tools/install.pl" \
--replace "/usr/bin/perl" "${perl}/bin/perl"
'';
installFlags = [ "BINDIR=$(out)/sbin" ];
installFlags = [ "prefix=$(out)" ];
meta = with stdenv.lib; {
description = "A Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";