Files
Joel Höner c570df851d uefitoolPackages.new-engine: A62 -> A71
This commit upgrades uefiToolPackages.new-engine to the latest version
as of writing. Version A68 is now using Qt6 and no longer comes with
a custom build script, so the build logic compared to the old-engine
variant has become sufficiently divergent that I decided that it would
be easier to split them into two entirely different derivations.

Additionally, I:

- added myself as a maintainer
- added a patch that allows the new-engine variant to build on Darwin
- correctly set `mainProgram` in the old-engine variant
2025-05-02 17:55:25 +02:00

49 lines
981 B
Nix

{
lib,
mkDerivation,
fetchFromGitHub,
qtbase,
qmake,
cmake,
zip,
}:
mkDerivation rec {
pname = "uefitool";
version = "0.28.0";
src = fetchFromGitHub {
hash = "sha256-StqrOMsKst2X2yQQ/Xl7iLAuA4QXEOyj2KtE7ZtoUNg=";
owner = "LongSoft";
repo = "uefitool";
tag = version;
};
buildInputs = [ qtbase ];
nativeBuildInputs = [
qmake
cmake
zip
];
dontConfigure = true;
buildPhase = ''
bash unixbuild.sh
'';
installPhase = ''
mkdir -p "$out"/bin
cp UEFITool UEFIReplace/UEFIReplace UEFIPatch/UEFIPatch "$out"/bin
'';
meta = {
description = "UEFI firmware image viewer and editor";
homepage = "https://github.com/LongSoft/uefitool";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ athre0z ];
# uefitool supposedly works on other platforms, but their build script only works on linux in nixpkgs
platforms = lib.platforms.linux;
mainProgram = "UEFITool";
};
}