2023-06-03 08:03:07 +00:00
|
|
|
{ lib, stdenv, buildPackages, fetchurl, pciutils
|
|
|
|
, gitUpdater }:
|
2019-11-03 10:24:57 +00:00
|
|
|
|
2014-06-19 00:39:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gnu-efi";
|
2024-03-24 07:35:25 +00:00
|
|
|
version = "3.0.18";
|
2012-03-14 01:23:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
|
2024-03-24 07:35:25 +00:00
|
|
|
hash = "sha256-fyEslu5mVH7u+1MSZ7ZB5Uc9fYUp8L2Mze/TPPdBP1w=";
|
2012-03-14 01:23:31 +00:00
|
|
|
};
|
|
|
|
|
2015-05-20 07:26:12 +00:00
|
|
|
buildInputs = [ pciutils ];
|
2012-03-14 01:23:31 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-03-01 22:20:50 +00:00
|
|
|
|
2014-01-18 16:49:59 +00:00
|
|
|
makeFlags = [
|
2015-05-20 07:26:12 +00:00
|
|
|
"PREFIX=\${out}"
|
2019-11-03 10:24:57 +00:00
|
|
|
"HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc"
|
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
|
|
];
|
2012-03-14 01:23:31 +00:00
|
|
|
|
2023-06-08 19:25:48 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Make.defaults \
|
|
|
|
--replace "-Werror" ""
|
|
|
|
'';
|
|
|
|
|
2022-05-05 21:52:35 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
# No nicer place to find latest release.
|
|
|
|
url = "https://git.code.sf.net/p/gnu-efi/code";
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-06-19 00:39:47 +00:00
|
|
|
description = "GNU EFI development toolchain";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/gnu-efi/";
|
2014-06-19 00:39:47 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
2023-06-03 08:03:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2014-06-19 00:39:47 +00:00
|
|
|
};
|
2012-03-14 01:23:31 +00:00
|
|
|
}
|