mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Add gummiboot UEFI boot manager
This commit is contained in:
parent
aa703a2b44
commit
f5f5eff924
28
pkgs/tools/misc/gummiboot/default.nix
Normal file
28
pkgs/tools/misc/gummiboot/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
20
pkgs/tools/misc/gummiboot/no-usr.patch
Normal file
20
pkgs/tools/misc/gummiboot/no-usr.patch
Normal 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) \
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user