2022-06-26 10:26:21 +00:00
|
|
|
{ lib, stdenv, buildPackages, fetchurl, pciutils
|
|
|
|
, gitUpdater }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnu-efi";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "3.0.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
|
2022-06-26 10:26:21 +00:00
|
|
|
sha256 = "tztkOg1Wl9HzltdDFEjoht2AVmh4lXjj4aKCd8lShDU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pciutils ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "stackprotector" ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=\${out}"
|
|
|
|
"HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc"
|
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
|
|
];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
inherit pname version;
|
|
|
|
# No nicer place to find latest release.
|
|
|
|
url = "https://git.code.sf.net/p/gnu-efi/code";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GNU EFI development toolchain";
|
|
|
|
homepage = "https://sourceforge.net/projects/gnu-efi/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|