efibootmgr: grab upstream commit as patch to fix w/efivar 37

(removes workaround for previous versions)
This commit is contained in:
Will Dietz 2018-12-15 18:06:43 -06:00 committed by Franz Pletz
parent cc65a12098
commit c761524f30
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, efivar, popt }:
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, efivar, popt }:
stdenv.mkDerivation rec {
name = "efibootmgr-${version}";
@ -15,6 +15,14 @@ stdenv.mkDerivation rec {
sha256 = "1niicijxg59rsmiw3rsjwy4bvi1n42dynvm01lnp9haixdzdpq03";
};
patches = [
(fetchpatch {
name = "remove-extra-decl.patch";
url = "https://github.com/rhboot/efibootmgr/commit/99b578501643377e0b1994b2a068b790d189d5ad.patch";
sha256 = "1sbijvlpv4khkix3vix9mbhzffj8lp8zpnbxm9gnzjz8yssz9p5h";
})
];
makeFlags = [ "EFIDIR=nixos" ];
installFlags = [ "prefix=$(out)" ];