Add gummiboot UEFI boot manager

This commit is contained in:
Shea Levy 2013-02-01 17:42:19 -05:00
parent aa703a2b44
commit f5f5eff924
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ stdenv, fetchurl, gnu_efi }:
stdenv.mkDerivation rec {
name = "gummiboot-16";
patches = [ ./no-usr.patch ];
buildFlags = [
"GNU_EFI=${gnu_efi}"
];
installPhase = "mkdir -p $out/bin; mv gummiboot.efi $out/bin";
src = fetchurl {
url = "http://cgit.freedesktop.org/gummiboot/snapshot/${name}.tar.gz";
sha256 = "1znvbxrhc7pkbhbw9bvg4zhfkp81q7fy4mq2jsw6vimccr7h29a0";
};
meta = {
description = "A simple UEFI boot manager which executes configured EFI images";
homepage = http://freedesktop.org/wiki/Software/gummiboot;
license = stdenv.lib.licenses.lgpl21Plus;
platforms = [ "x86_64-linux" ];
};
}

View File

@ -0,0 +1,20 @@
diff -Naur gummiboot-16-orig/Makefile gummiboot-16/Makefile
--- gummiboot-16-orig/Makefile 2013-01-24 04:20:58.000000000 -0500
+++ gummiboot-16/Makefile 2013-02-01 17:27:42.922371399 -0500
@@ -1,13 +1,13 @@
VERSION=16
ARCH=$(shell $(CC) -dumpmachine | sed "s/\(-\).*$$//")
-LIBDIR=$(shell echo $$(cd /usr/lib/$$(gcc -print-multi-os-directory); pwd))
+LIBDIR=$(GNU_EFI)/lib
LIBEFIDIR=$(or $(wildcard $(LIBDIR)/gnuefi), $(LIBDIR))
CPPFLAGS = \
-I. \
- -I/usr/include/efi \
- -I/usr/include/efi/$(ARCH)
+ -I$(GNU_EFI)/include/efi \
+ -I$(GNU_EFI)/include/efi/$(ARCH)
CFLAGS = \
-DVERSION=$(VERSION) \

View File

@ -891,6 +891,8 @@ let
gtmess = callPackage ../applications/networking/instant-messengers/gtmess { };
gummiboot = callPackage ../tools/misc/gummiboot { };
gupnp = callPackage ../development/libraries/gupnp {
inherit (gnome) libsoup;
};