3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/gnu-efi/default.nix

41 lines
825 B
Nix
Raw Normal View History

{ stdenv
, fetchurl
}:
stdenv.mkDerivation {
2012-10-05 00:57:17 +01:00
name = "gnu-efi-3.0r";
src = fetchurl {
2012-10-05 00:57:17 +01:00
url = "mirror://sourceforge/gnu-efi/gnu-efi_3.0r.orig.tar.gz";
sha256 = "1zi298wsg8v29xj4azcawqfjbxqi2w7l60agf7x2ph2lnqlga2v5";
};
meta = {
description = "GNU EFI development toolchain";
homepage = http://sourceforge.net/projects/gnu-efi/;
license = "GPL";
maintainers = [ stdenv.lib.maintainers.shlevy ];
platforms = ["x86_64-linux" "i686-linux"];
};
buildFlags = [
"CC=cc"
"AS=as"
"LD=ld"
"AR=ar"
"RANLIB=ranlib"
"OBJCOPY=objcopy"
];
buildPhase = ''
make $buildFlags
make $buildFlags -C apps clean all
'';
installPhase = ''
make INSTALLROOT="$out" install
mkdir -pv $out/share/gnu-efi
install -D -m644 apps/*.efi $out/share/gnu-efi
'';
}