Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, buildPackages, fetchurl, pciutils 2, gitUpdater }: 3 4stdenv.mkDerivation rec { 5 pname = "gnu-efi"; 6 version = "3.0.17"; 7 8 src = fetchurl { 9 url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2"; 10 sha256 = "sha256-eAfpAzSTQ6ehQuu5NHA6KHIjXolojPWGwDKwoQh7yvQ="; 11 }; 12 13 buildInputs = [ pciutils ]; 14 15 hardeningDisable = [ "stackprotector" ]; 16 17 makeFlags = [ 18 "PREFIX=\${out}" 19 "HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc" 20 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 21 ]; 22 23 passthru.updateScript = gitUpdater { 24 # No nicer place to find latest release. 25 url = "https://git.code.sf.net/p/gnu-efi/code"; 26 }; 27 28 meta = with lib; { 29 description = "GNU EFI development toolchain"; 30 homepage = "https://sourceforge.net/projects/gnu-efi/"; 31 license = licenses.bsd3; 32 platforms = platforms.linux; 33 maintainers = with maintainers; [ ]; 34 }; 35}