-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdefault.nix
80 lines (72 loc) · 1.48 KB
/
default.nix
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
version,
stdenv,
lib,
appstream,
buildGo124Module,
cmake,
cmake-format,
extra-cmake-modules,
git,
go_1_24,
kdePackages,
nlohmann_json,
}:
let
src = ./.;
goDeps =
(buildGo124Module {
pname = "ktailctl_wrapper";
inherit src version;
modRoot = "src/wrapper";
vendorHash = "sha256-o7eH3f+yeRr5CnBIuL2jMtVQaBLVihz2dg5RTF8RvaM=";
}).goModules;
in
stdenv.mkDerivation {
pname = "ktailctl";
inherit version;
inherit goDeps;
inherit src;
nativeBuildInputs = [
cmake
extra-cmake-modules
git
go_1_24
kdePackages.wrapQtAppsHook
];
buildInputs = [
appstream
cmake-format
kdePackages.kconfig
kdePackages.kcoreaddons
kdePackages.kdbusaddons
kdePackages.kguiaddons
kdePackages.ki18n
kdePackages.kirigami
kdePackages.kirigami-addons
kdePackages.knotifications
kdePackages.kwindowsystem
kdePackages.qqc2-desktop-style
kdePackages.qtbase
kdePackages.qtdeclarative
kdePackages.qtsvg
kdePackages.qtwayland
nlohmann_json
];
postPatch = ''
cp -r --reflink=auto ${goDeps} src/wrapper/vendor
'';
preBuild = ''
export HOME=$TMPDIR
'';
cmakeFlags = [
"-DKTAILCTL_FLATPAK_BUILD=ON"
];
meta = with lib; {
description = "GUI to monitor and manage Tailscale on your Linux desktop";
homepage = "https://github.com/f-koehler/KTailctl";
license = licenses.gpl3Only;
mainProgram = "ktailctl";
platforms = platforms.unix;
};
}