Files
2026-03-24 19:01:17 +01:00

48 lines
927 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
qt6,
wrapGAppsHook3,
cmake,
zip,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "uefitool";
version = "A73";
src = fetchFromGitHub {
owner = "LongSoft";
repo = "uefitool";
tag = finalAttrs.version;
hash = "sha256-XZGddj0i/r1rqntEcqU2AK6ihvqwN031TR12qmEmKLk=";
};
buildInputs = [ qt6.qtbase ];
nativeBuildInputs = [
cmake
zip
qt6.wrapQtAppsHook
wrapGAppsHook3
];
patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./bundle-destination.patch ];
dontWrapGApps = true;
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = {
description = "UEFI firmware image viewer and editor";
homepage = "https://github.com/LongSoft/uefitool";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ athre0z ];
platforms = lib.platforms.unix;
mainProgram = "uefitool";
};
})