2021-08-15 14:40:30 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libbfd, zlib, libiberty }:
|
2020-02-01 16:24:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wimboot";
|
2022-02-13 12:42:33 +00:00
|
|
|
version = "2.7.4";
|
2020-02-01 16:24:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipxe";
|
|
|
|
repo = "wimboot";
|
|
|
|
rev = "v${version}";
|
2022-02-13 12:42:33 +00:00
|
|
|
sha256 = "sha256-LaPH6nGQanweAG0niS75hr7zbO/9A3iZjS8wHD//oJ4=";
|
2020-02-01 16:24:41 +00:00
|
|
|
};
|
|
|
|
|
2021-08-15 14:40:30 +01:00
|
|
|
sourceRoot = "source/src";
|
2020-02-01 16:24:41 +00: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 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 08:49:12 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-02-01 16:24:41 +00:00
|
|
|
};
|
|
|
|
}
|