2021-08-15 15:40:30 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libbfd, zlib, libiberty }:
|
2020-02-01 17:24:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wimboot";
|
2021-08-15 15:40:30 +02:00
|
|
|
version = "2.7.3";
|
2020-02-01 17:24:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipxe";
|
|
|
|
repo = "wimboot";
|
|
|
|
rev = "v${version}";
|
2021-08-15 15:40:30 +02:00
|
|
|
sha256 = "12c677agkmiqs35qfpqfj7c4kxkizhbk9l6hig36dslzp4fwpl70";
|
2020-02-01 17:24:41 +01:00
|
|
|
};
|
|
|
|
|
2021-08-15 15:40:30 +02:00
|
|
|
sourceRoot = "source/src";
|
2020-02-01 17:24:41 +01:00
|
|
|
|
|
|
|
buildInputs = [ libbfd zlib libiberty ];
|
|
|
|
makeFlags = [ "wimboot.x86_64.efi" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/wimboot/
|
|
|
|
cp wimboot.x86_64.efi $out/share/wimboot
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-02-01 17:24:41 +01:00
|
|
|
homepage = "https://ipxe.org/wimboot";
|
|
|
|
description = "Windows Imaging Format bootloader";
|
2021-01-31 02:34:22 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-02-01 17:24:41 +01:00
|
|
|
maintainers = with maintainers; [ das_j ajs124 ];
|
|
|
|
platforms = platforms.x86; # Fails on aarch64
|
|
|
|
};
|
|
|
|
}
|