depot/third_party/nixpkgs/pkgs/tools/misc/wimboot/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

36 lines
868 B
Nix

{ lib, stdenv, fetchFromGitHub, libbfd, zlib, libiberty }:
stdenv.mkDerivation rec {
pname = "wimboot";
version = "2.7.6";
src = fetchFromGitHub {
owner = "ipxe";
repo = "wimboot";
rev = "v${version}";
sha256 = "sha256-AFPuHxcDM/cdEJ5nRJnVbPk7Deg97NeSMsg/qwytZX4=";
};
sourceRoot = "${src.name}/src";
buildInputs = [ libbfd zlib libiberty ];
makeFlags = [ "wimboot.x86_64.efi" ];
env.NIX_CFLAGS_COMPILE = toString [
# Needed with GCC 12
"-Wno-error=array-bounds"
];
installPhase = ''
mkdir -p $out/share/wimboot/
cp wimboot.x86_64.efi $out/share/wimboot
'';
meta = with lib; {
homepage = "https://ipxe.org/wimboot";
description = "Windows Imaging Format bootloader";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ das_j ajs124 ];
platforms = [ "x86_64-linux" ];
};
}