Files
nixpkgs/pkgs/tools/system/uefitool/old-engine.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +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";
};
}