nixpkgs/pkgs/tools/misc/wimboot/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
863 B
Nix
Raw Normal View History

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";
2023-02-01 11:20:41 +01:00
version = "2.7.5";
2020-02-01 17:24:41 +01:00
src = fetchFromGitHub {
owner = "ipxe";
repo = "wimboot";
rev = "v${version}";
2023-02-01 11:20:41 +01:00
sha256 = "sha256-rbJONP3ge+2+WzCIpTUZeieQz9Q/MZfEUmQVbZ+9Dro=";
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" ];
env.NIX_CFLAGS_COMPILE = toString [
2022-12-23 17:57:29 +01:00
# Needed with GCC 12
"-Wno-error=array-bounds"
];
2020-02-01 17:24:41 +01:00
installPhase = ''
mkdir -p $out/share/wimboot/
cp wimboot.x86_64.efi $out/share/wimboot
'';
meta = with lib; {
2020-02-01 17:24:41 +01:00
homepage = "https://ipxe.org/wimboot";
description = "Windows Imaging Format bootloader";
license = licenses.gpl2Plus;
2020-02-01 17:24:41 +01:00
maintainers = with maintainers; [ das_j ajs124 ];
platforms = [ "x86_64-linux" ];
2020-02-01 17:24:41 +01:00
};
}