depot/third_party/nixpkgs/pkgs/development/libraries/gnu-efi/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

37 lines
892 B
Nix

{ lib, stdenv, buildPackages, fetchurl, pciutils
, gitUpdater }:
with lib;
stdenv.mkDerivation rec {
pname = "gnu-efi";
version = "3.0.14";
src = fetchurl {
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
sha256 = "tztkOg1Wl9HzltdDFEjoht2AVmh4lXjj4aKCd8lShDU=";
};
buildInputs = [ pciutils ];
hardeningDisable = [ "stackprotector" ];
makeFlags = [
"PREFIX=\${out}"
"HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc"
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
];
passthru.updateScript = gitUpdater {
inherit pname version;
# 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;
};
}