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

42 lines
867 B
Nix
Raw Normal View History

{ stdenv
, fetchurl
}:
let version = "3.0u"; in stdenv.mkDerivation {
2013-02-01 21:50:11 +00:00
name = "gnu-efi-${version}";
src = fetchurl {
2013-02-01 21:50:11 +00:00
url = "mirror://sourceforge/gnu-efi/gnu-efi_${version}.orig.tar.gz";
sha256 = "0klkdxh1aqwwfm393q67nxww6liffyp2lfybbnh4q819b06la39w";
};
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"];
};
makeFlags = [
"CC=gcc"
"AS=as"
"LD=ld"
"AR=ar"
"RANLIB=ranlib"
"OBJCOPY=objcopy"
];
buildPhase = ''
make $makeFlags
make $makeFlags -C apps clean all
'';
installPhase = ''
make PREFIX="$out" $makeFlags install
mkdir -pv $out/share/gnu-efi
install -D -m644 apps/*.efi $out/share/gnu-efi
'';
}