My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/misc/wimboot/default.nix

31 lines
764 B

{ lib, stdenv, fetchFromGitHub, libbfd, zlib, libiberty }:
stdenv.mkDerivation rec {
pname = "wimboot";
version = "2.7.4";
src = fetchFromGitHub {
owner = "ipxe";
repo = "wimboot";
rev = "v${version}";
sha256 = "sha256-LaPH6nGQanweAG0niS75hr7zbO/9A3iZjS8wHD//oJ4=";
};
sourceRoot = "source/src";
buildInputs = [ libbfd zlib libiberty ];
makeFlags = [ "wimboot.x86_64.efi" ];
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" ];
};
}