nixpkgs/pkgs/tools/misc/gummiboot/default.nix
Shea Levy 40e86be5b1 Gummiboot: Switch to zip archive.
For some reason tarballs from cgit have a different hash each time you download.
2013-02-02 19:39:11 -05:00

32 lines
817 B
Nix

{ stdenv, fetchurl, gnu_efi, unzip }:
stdenv.mkDerivation rec {
name = "gummiboot-16";
buildInputs = [ unzip ];
patches = [ ./no-usr.patch ];
buildFlags = [
"GNU_EFI=${gnu_efi}"
] ++ stdenv.lib.optional (stdenv.system == "i686-linux") "ARCH=ia32";
installPhase = "mkdir -p $out/bin; mv gummiboot.efi $out/bin";
src = fetchurl {
url = "http://cgit.freedesktop.org/gummiboot/snapshot/${name}.zip";
sha256 = "0as5svmvsbz08qgbvns77qfb36xi9lx2138ikiinqv6finzm8fi1";
};
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 ];
};
}