nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 38 lines 1.0 kB view raw
1{ stdenv, buildPackages, fetchurl, fetchpatch, pciutils }: 2 3with stdenv.lib; 4 5stdenv.mkDerivation rec { 6 pname = "gnu-efi"; 7 version = "3.0.11"; 8 9 src = fetchurl { 10 url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2"; 11 sha256 = "1ffnc4xbzfggs37ymrgfx76j56kk2644c081ivhr2bjkla9ag3gj"; 12 }; 13 14 patches = [ 15 # Fix build on armv6l 16 (fetchpatch { 17 url = "https://sourceforge.net/p/gnu-efi/patches/_discuss/thread/25bb273a18/9c4d/attachment/0001-Fix-ARCH-on-armv6-and-other-32-bit-ARM-platforms.patch"; 18 sha256 = "0pj03h20g2bbz6fr753bj1scry6919h57l1h86z3b6q7hqfj0b4r"; 19 }) 20 ]; 21 22 buildInputs = [ pciutils ]; 23 24 hardeningDisable = [ "stackprotector" ]; 25 26 makeFlags = [ 27 "PREFIX=\${out}" 28 "HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc" 29 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 30 ]; 31 32 meta = with stdenv.lib; { 33 description = "GNU EFI development toolchain"; 34 homepage = "https://sourceforge.net/projects/gnu-efi/"; 35 license = licenses.bsd3; 36 platforms = platforms.linux; 37 }; 38}