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