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