2021-08-15 13:40:30 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libbfd, zlib, libiberty }:
|
2020-02-01 16:24:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wimboot";
|
2023-02-01 10:20:41 +00:00
|
|
|
version = "2.7.5";
|
2020-02-01 16:24:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipxe";
|
|
|
|
repo = "wimboot";
|
|
|
|
rev = "v${version}";
|
2023-02-01 10:20:41 +00:00
|
|
|
sha256 = "sha256-rbJONP3ge+2+WzCIpTUZeieQz9Q/MZfEUmQVbZ+9Dro=";
|
2020-02-01 16:24:41 +00:00
|
|
|
};
|
|
|
|
|
2021-08-15 13:40:30 +00:00
|
|
|
sourceRoot = "source/src";
|
2020-02-01 16:24:41 +00:00
|
|
|
|
|
|
|
buildInputs = [ libbfd zlib libiberty ];
|
|
|
|
makeFlags = [ "wimboot.x86_64.efi" ];
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2022-12-23 16:57:29 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=array-bounds"
|
|
|
|
];
|
|
|
|
|
2020-02-01 16:24:41 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/wimboot/
|
|
|
|
cp wimboot.x86_64.efi $out/share/wimboot
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-01 16:24:41 +00:00
|
|
|
homepage = "https://ipxe.org/wimboot";
|
|
|
|
description = "Windows Imaging Format bootloader";
|
2021-01-31 01:34:22 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-02-01 16:24:41 +00:00
|
|
|
maintainers = with maintainers; [ das_j ajs124 ];
|
2022-05-19 07:49:12 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-02-01 16:24:41 +00:00
|
|
|
};
|
|
|
|
}
|