tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ktailctl: init at 0.9.0
Finally a native Qt Tailscale client.
K900
2 years ago
e7ebeb75
aff5032d
+85
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
ktailctl
default.nix
top-level
all-packages.nix
+83
pkgs/applications/networking/ktailctl/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, buildGo121Module
5
5
+
, cmake
6
6
+
, extra-cmake-modules
7
7
+
, git
8
8
+
, go_1_21
9
9
+
, wrapQtAppsHook
10
10
+
, qtbase
11
11
+
, qtquickcontrols2
12
12
+
, kconfig
13
13
+
, kcoreaddons
14
14
+
, kguiaddons
15
15
+
, ki18n
16
16
+
, kirigami2
17
17
+
, kirigami-addons
18
18
+
, knotifications
19
19
+
}:
20
20
+
21
21
+
let
22
22
+
version = "0.9.0";
23
23
+
24
24
+
src = fetchFromGitHub {
25
25
+
owner = "f-koehler";
26
26
+
repo = "KTailctl";
27
27
+
rev = "v${version}";
28
28
+
hash = "sha256-nY6DEHkDVWIlvc64smXb9KshrhNgNLKiilYydbMKCqc=";
29
29
+
};
30
30
+
31
31
+
goDeps = (buildGo121Module {
32
32
+
pname = "tailwrap";
33
33
+
inherit src version;
34
34
+
modRoot = "tailwrap";
35
35
+
vendorHash = "sha256-Y9xhoTf3vCtiNi5qOPg020EQmASo58BZI3rAoUEC8qE=";
36
36
+
}).goModules;
37
37
+
in stdenv.mkDerivation {
38
38
+
pname = "ktailctl";
39
39
+
inherit version src;
40
40
+
41
41
+
postPatch = ''
42
42
+
cp -r --reflink=auto ${goDeps} tailwrap/vendor
43
43
+
'';
44
44
+
45
45
+
# needed for go build to work
46
46
+
preBuild = ''
47
47
+
export HOME=$TMPDIR
48
48
+
'';
49
49
+
50
50
+
cmakeFlags = [
51
51
+
# actually just disables Go vendoring updates
52
52
+
"-DKTAILCTL_FLATPAK_BUILD=ON"
53
53
+
];
54
54
+
55
55
+
nativeBuildInputs = [
56
56
+
cmake
57
57
+
extra-cmake-modules
58
58
+
git
59
59
+
go_1_21
60
60
+
wrapQtAppsHook
61
61
+
];
62
62
+
63
63
+
buildInputs = [
64
64
+
qtbase
65
65
+
qtquickcontrols2
66
66
+
kconfig
67
67
+
kcoreaddons
68
68
+
kguiaddons
69
69
+
ki18n
70
70
+
kirigami2
71
71
+
kirigami-addons
72
72
+
knotifications
73
73
+
];
74
74
+
75
75
+
meta = with lib; {
76
76
+
description = "A GUI to monitor and manage Tailscale on your Linux desktop";
77
77
+
homepage = "https://github.com/f-koehler/KTailctl";
78
78
+
license = licenses.gpl3Only;
79
79
+
maintainers = with maintainers; [ k900 ];
80
80
+
mainProgram = "ktailctl";
81
81
+
platforms = platforms.all;
82
82
+
};
83
83
+
}
+2
pkgs/top-level/all-packages.nix
···
10316
10316
10317
10317
keama = callPackage ../tools/networking/keama { };
10318
10318
10319
10319
+
ktailctl = libsForQt5.callPackage ../applications/networking/ktailctl {};
10320
10320
+
10319
10321
iredis = callPackage ../tools/admin/iredis { };
10320
10322
10321
10323
ispell = callPackage ../tools/text/ispell { };