From 8b7d3127b5f74f66815131ac242ff57b25864f34 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Thu, 18 Jun 2015 22:34:43 -0700 Subject: [PATCH] efibootmgr: 0.11.0 -> 0.12 --- pkgs/tools/system/efibootmgr/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/system/efibootmgr/default.nix b/pkgs/tools/system/efibootmgr/default.nix index 3f26760e621b..6364267fc479 100644 --- a/pkgs/tools/system/efibootmgr/default.nix +++ b/pkgs/tools/system/efibootmgr/default.nix @@ -1,17 +1,21 @@ -{ stdenv, fetchgit, perl, efivar, pciutils, zlib }: +{ stdenv, fetchFromGitHub, perl, efivar, pciutils, zlib }: stdenv.mkDerivation rec { name = "efibootmgr-${version}"; - version = "0.11.0"; + version = "0.12"; buildInputs = [ perl efivar pciutils zlib ]; - src = fetchgit { - url = "git://github.com/rhinstaller/efibootmgr.git"; - rev = "refs/tags/${name}"; - sha256 = "1di7cipi6jh4qaiq1ckyk6aimgpagb85yr37k3c1kj1m9p5qra4j"; + src = fetchFromGitHub { + owner = "rhinstaller"; + repo = "efibootmgr"; + rev = name; + sha256 = "0fmrsp67dln76896fvxalj2pamyp9dszf32kl06wdfi0km42z8sh"; }; + NIX_CFLAGS_COMPILE = "-I${efivar}/include/efivar"; + NIX_LDFLAGS = "-lefiboot -lefivar"; + postPatch = '' substituteInPlace "./tools/install.pl" \ --replace "/usr/bin/perl" "${perl}/bin/perl"