about summary refs log tree commit diff
path: root/pkgs/tools/misc/gummiboot/default.nix
blob: cf2fe713461f1b2a4dd2851221796e25a424f477 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, gnu_efi, unzip, pkgconfig, utillinux, libxslt, docbook_xsl, docbook_xml_dtd_42 }:

stdenv.mkDerivation rec {
  name = "gummiboot-23";

  buildInputs = [ unzip pkgconfig utillinux libxslt docbook_xsl docbook_xml_dtd_42 ];

  patches = [ ./no-usr.patch ];

  buildFlags = [ "GNU_EFI=${gnu_efi}" ];

  makeFlags = [ "PREFIX=$(out)" ];

  src = fetchurl {
    url = "http://cgit.freedesktop.org/gummiboot/snapshot/${name}.zip";
    sha256 = "1lmfk4k52ha00ppna5g7h51vhd27i9fipf5k7mc2d9jkm2480z4j";
  };

  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" "i686-linux" ];

    maintainers = [ stdenv.lib.maintainers.shlevy ];
  };
}