depot/third_party/nixpkgs/pkgs/development/libraries/gnu-efi/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

47 lines
1.1 KiB
Nix

{ lib, stdenv, buildPackages, fetchFromGitHub, pciutils
, gitUpdater, fwupd-efi, ipxe, refind, syslinux }:
stdenv.mkDerivation rec {
pname = "gnu-efi";
version = "3.0.18";
src = fetchFromGitHub {
owner = "ncroxon";
repo = "gnu-efi";
rev = version;
hash = "sha256-xtiKglLXm9m4li/8tqbOsyM6ThwGhyu/g4kw5sC4URY=";
};
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";
};
tests = {
inherit fwupd-efi ipxe refind syslinux;
};
};
meta = with lib; {
description = "GNU EFI development toolchain";
homepage = "https://sourceforge.net/projects/gnu-efi/";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ ];
};
}