2019-11-03 11:24:57 +01:00
|
|
|
{ stdenv, buildPackages, fetchurl, pciutils }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2012-03-14 02:23:31 +01:00
|
|
|
|
2014-06-19 02:39:47 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gnu-efi";
|
2018-11-10 04:41:12 +01:00
|
|
|
version = "3.0.9";
|
2012-03-14 02:23:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
|
2018-11-10 04:41:12 +01:00
|
|
|
sha256 = "1w3p4aqlc5j93q44la7dc8cr3hky20zvsd0h0k2lyzhwmrzfl5b7";
|
2012-03-14 02:23:31 +01:00
|
|
|
};
|
|
|
|
|
2015-05-20 09:26:12 +02:00
|
|
|
buildInputs = [ pciutils ];
|
2012-03-14 02:23:31 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-03-01 23:20:50 +01:00
|
|
|
|
2014-01-18 17:49:59 +01:00
|
|
|
makeFlags = [
|
2015-05-20 09:26:12 +02:00
|
|
|
"PREFIX=\${out}"
|
2019-11-03 11:24:57 +01:00
|
|
|
"HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc"
|
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
|
|
];
|
2012-03-14 02:23:31 +01:00
|
|
|
|
2014-06-19 02:39:47 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNU EFI development toolchain";
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://sourceforge.net/projects/gnu-efi/;
|
2014-06-19 02:39:47 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2012-03-14 02:23:31 +01:00
|
|
|
}
|