mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
d5fa972641
gnu-efi> /build/gnu-efi-3.0.17//lib/console.c:84:68: error: passing argument 2 of ‘ConOut->OutputString’ from incompatible pointer type [8;;h ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;] gnu-efi> 84 | uefi_call_wrapper(ConOut->OutputString, 2, ConOut, L"\b \b"); gnu-efi> | ^~~~~~~~ gnu-efi> | | gnu-efi> | short unsigned int *
41 lines
993 B
Nix
41 lines
993 B
Nix
{ lib, stdenv, buildPackages, fetchurl, pciutils
|
|
, gitUpdater }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnu-efi";
|
|
version = "3.0.15";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-kxole5xcG6Zf9Rnxg3PEOKJoJfLbeGaxY+ltGxaPIOo=";
|
|
};
|
|
|
|
buildInputs = [ pciutils ];
|
|
|
|
hardeningDisable = [ "stackprotector" ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=\${out}"
|
|
"HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc"
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Make.defaults \
|
|
--replace "-Werror" ""
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
# No nicer place to find latest release.
|
|
url = "https://git.code.sf.net/p/gnu-efi/code";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "GNU EFI development toolchain";
|
|
homepage = "https://sourceforge.net/projects/gnu-efi/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|