mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
43 lines
977 B
Nix
43 lines
977 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnu-efi_${version}";
|
|
version = "3.0u";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gnu-efi/${name}.orig.tar.gz";
|
|
sha256 = "0klkdxh1aqwwfm393q67nxww6liffyp2lfybbnh4q819b06la39w";
|
|
};
|
|
|
|
arch = with stdenv.lib; head (splitString "-" stdenv.system);
|
|
|
|
makeFlags = [
|
|
"CC=gcc"
|
|
"AS=as"
|
|
"LD=ld"
|
|
"AR=ar"
|
|
"RANLIB=ranlib"
|
|
"OBJCOPY=objcopy"
|
|
];
|
|
|
|
buildPhase = ''
|
|
make $makeFlags
|
|
make $makeFlags -C apps clean all
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -pv $out/include/efi/{protocol,$arch}
|
|
make PREFIX="$out" $makeFlags install
|
|
mkdir -pv $out/share/gnu-efi
|
|
install -D -m644 apps/*.efi $out/share/gnu-efi
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "GNU EFI development toolchain";
|
|
homepage = http://sourceforge.net/projects/gnu-efi/;
|
|
license = licenses.bsd3;
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|