Skip to content

Commit 33a1178

Browse files
efibooteditor: init at 1.5.3 (#411030)
2 parents 63f5b5f + 28127a9 commit 33a1178

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
lib,
3+
qt6,
4+
zlib,
5+
cmake,
6+
efivar,
7+
pkg-config,
8+
fetchFromGitHub,
9+
stdenv,
10+
}:
11+
12+
stdenv.mkDerivation (finalAttrs: {
13+
pname = "efibooteditor";
14+
version = "1.5.3";
15+
16+
src = fetchFromGitHub {
17+
owner = "Neverous";
18+
repo = "efibooteditor";
19+
tag = "v${finalAttrs.version}";
20+
hash = "sha256-xD40ZzkpwerDYC8nzGVqEHLV0KWbxcc0ApquQjrPJTc=";
21+
};
22+
23+
buildInputs = [ zlib ] ++ lib.optional stdenv.hostPlatform.isLinux efivar;
24+
25+
nativeBuildInputs = [
26+
cmake
27+
pkg-config
28+
qt6.qttools
29+
qt6.wrapQtAppsHook
30+
];
31+
32+
postPatch = ''
33+
substituteInPlace misc/org.x.efibooteditor.policy \
34+
--replace-fail /usr/bin $out/bin
35+
substituteInPlace misc/EFIBootEditor.desktop \
36+
--replace-fail "1.0" ${finalAttrs.version} \
37+
--replace-fail \
38+
'pkexec efibooteditor' \
39+
'sh -c "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY efibooteditor"'
40+
'';
41+
42+
env.BUILD_VERSION = "v${finalAttrs.version}";
43+
cmakeBuildType = "MinSizeRel";
44+
cmakeFlags = [ "-DQT_VERSION_MAJOR=6" ];
45+
46+
postInstall = ''
47+
install -Dm644 $src/LICENSE.txt $out/share/licenses/${finalAttrs.pname}/LICENSE
48+
'';
49+
50+
meta = {
51+
description = "Boot Editor for (U)EFI based systems";
52+
homepage = "https://github.com/Neverous/efibooteditor";
53+
changelog = "https://github.com/Neverous/efibooteditor/releases/tag/${finalAttrs.src.tag}";
54+
license = lib.licenses.lgpl3Plus;
55+
platforms = lib.platforms.linux; # TODO build is broken on darwin
56+
maintainers = with lib.maintainers; [ phanirithvij ];
57+
mainProgram = "efibooteditor";
58+
};
59+
})

0 commit comments

Comments
 (0)