nixpkgs/pkgs/development/libraries/gnu-efi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
991 B
Nix
Raw Normal View History

{ lib, stdenv, buildPackages, fetchurl, pciutils
, gitUpdater }:
stdenv.mkDerivation rec {
pname = "gnu-efi";
2024-03-24 07:35:25 +00:00
version = "3.0.18";
src = fetchurl {
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
2024-03-24 07:35:25 +00:00
hash = "sha256-fyEslu5mVH7u+1MSZ7ZB5Uc9fYUp8L2Mze/TPPdBP1w=";
};
2015-05-20 07:26:12 +00:00
buildInputs = [ pciutils ];
hardeningDisable = [ "stackprotector" ];
makeFlags = [
2015-05-20 07:26:12 +00:00
"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";
};
meta = with lib; {
description = "GNU EFI development toolchain";
homepage = "https://sourceforge.net/projects/gnu-efi/";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}