Unverified Commit 1753d89c authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

efibootmgr: fetch patch to allow reordering boot entries (#383167)

parents 03528fb7 f57fbfb5
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch2,
  efivar,
  nix-update-script,
  pkg-config,
@@ -21,10 +22,19 @@ stdenv.mkDerivation (finalAttrs: {
  src = fetchFromGitHub {
    owner = "rhboot";
    repo = "efibootmgr";
    rev = finalAttrs.version;
    tag = finalAttrs.version;
    hash = "sha256-DYYQGALEn2+mRHgqCJsA7OQCF7xirIgQlWexZ9uoKcg=";
  };

  patches = [
    (fetchpatch2 {
      # https://github.com/rhboot/efibootmgr/issues/186
      name = "efibootmgr_fix-editing-nonfinal-entry.patch";
      url = "https://github.com/rhboot/efibootmgr/commit/3eac27c5fccf93d2d6e634d6fe2a76d06708ec6e.diff?full_index=1";
      hash = "sha256-zXkmfW+BYv8jc/dibu0LEni06KyydVjfW/Lug0i+jUw=";
    })
  ];

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [