blob: 0ade322e471f579d9781d4c5d4da91d0d238fff7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
stdenv,
fetchFromGitHub,
qt6,
wrapGAppsHook3,
cmake,
zip,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "uefitool";
version = "A75";
src = fetchFromGitHub {
owner = "LongSoft";
repo = "uefitool";
tag = finalAttrs.version;
hash = "sha256-nBlU5zrDiMig5T+XvhlrV73ILHRkU1/aOeG0NgELxoU=";
};
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";
};
})
|