tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nheko: clean up (#341831)
authored by
Emily
and committed by
GitHub
1 year ago
8d4e0861
659f95ed
+166
-175
6 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
instant-messengers
nheko
default.nix
by-name
co
coeurl
package.nix
mt
mtxclient
package.nix
nh
nheko
package.nix
development
libraries
coeurl
default.nix
top-level
all-packages.nix
-100
pkgs/applications/networking/instant-messengers/nheko/default.nix
···
1
1
-
{ lib
2
2
-
, stdenv
3
3
-
, fetchFromGitHub
4
4
-
, cmake
5
5
-
, asciidoc
6
6
-
, pkg-config
7
7
-
, boost179
8
8
-
, cmark
9
9
-
, coeurl
10
10
-
, curl
11
11
-
, kdsingleapplication
12
12
-
, libevent
13
13
-
, libsecret
14
14
-
, lmdb
15
15
-
, lmdbxx
16
16
-
, mtxclient
17
17
-
, nlohmann_json
18
18
-
, olm
19
19
-
, qtbase
20
20
-
, qtimageformats
21
21
-
, qtkeychain
22
22
-
, qtmultimedia
23
23
-
, qttools
24
24
-
, qtwayland
25
25
-
, re2
26
26
-
, spdlog
27
27
-
, wrapQtAppsHook
28
28
-
, gst_all_1
29
29
-
, libnice
30
30
-
}:
31
31
-
32
32
-
stdenv.mkDerivation rec {
33
33
-
pname = "nheko";
34
34
-
version = "0.12.0";
35
35
-
36
36
-
src = fetchFromGitHub {
37
37
-
owner = "Nheko-Reborn";
38
38
-
repo = "nheko";
39
39
-
rev = "v${version}";
40
40
-
hash = "sha256-hQb+K8ogNj/s6ZO2kgS/sZZ35y4CwMeS3lVeMYNucYQ=";
41
41
-
};
42
42
-
43
43
-
nativeBuildInputs = [
44
44
-
asciidoc
45
45
-
cmake
46
46
-
lmdbxx
47
47
-
pkg-config
48
48
-
wrapQtAppsHook
49
49
-
];
50
50
-
51
51
-
buildInputs = [
52
52
-
boost179
53
53
-
cmark
54
54
-
coeurl
55
55
-
curl
56
56
-
kdsingleapplication
57
57
-
libevent
58
58
-
libsecret
59
59
-
lmdb
60
60
-
mtxclient
61
61
-
nlohmann_json
62
62
-
olm
63
63
-
qtbase
64
64
-
qtimageformats
65
65
-
qtkeychain
66
66
-
qtmultimedia
67
67
-
qttools
68
68
-
qtwayland
69
69
-
re2
70
70
-
spdlog
71
71
-
]
72
72
-
++ (with gst_all_1; [
73
73
-
gstreamer
74
74
-
gst-plugins-base
75
75
-
(gst-plugins-good.override { qt6Support = true; })
76
76
-
gst-plugins-bad
77
77
-
libnice
78
78
-
]);
79
79
-
80
80
-
cmakeFlags = [
81
81
-
"-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389
82
82
-
];
83
83
-
84
84
-
preFixup = ''
85
85
-
# add gstreamer plugins path to the wrapper
86
86
-
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
87
87
-
'';
88
88
-
89
89
-
meta = with lib; {
90
90
-
description = "Desktop client for the Matrix protocol";
91
91
-
homepage = "https://github.com/Nheko-Reborn/nheko";
92
92
-
license = licenses.gpl3Plus;
93
93
-
mainProgram = "nheko";
94
94
-
maintainers = with maintainers; [ ekleog fpletz ];
95
95
-
platforms = platforms.all;
96
96
-
# Should be fixable if a higher clang version is used, see:
97
97
-
# https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
98
98
-
broken = stdenv.hostPlatform.isDarwin;
99
99
-
};
100
100
-
}
+47
pkgs/by-name/co/coeurl/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitLab,
5
5
+
ninja,
6
6
+
pkg-config,
7
7
+
meson,
8
8
+
libevent,
9
9
+
curl,
10
10
+
spdlog,
11
11
+
}:
12
12
+
13
13
+
stdenv.mkDerivation rec {
14
14
+
pname = "coeurl";
15
15
+
version = "0.3.1";
16
16
+
17
17
+
src = fetchFromGitLab {
18
18
+
domain = "nheko.im";
19
19
+
owner = "nheko-reborn";
20
20
+
repo = pname;
21
21
+
rev = "v${version}";
22
22
+
hash = "sha256-NGplM5c/dMGSQbhKeuPOTWL8KsqvMd/76YuwCxnqNNE=";
23
23
+
};
24
24
+
postPatch = ''
25
25
+
substituteInPlace subprojects/curl.wrap --replace '[provides]' '[provide]'
26
26
+
'';
27
27
+
28
28
+
nativeBuildInputs = [
29
29
+
ninja
30
30
+
pkg-config
31
31
+
meson
32
32
+
];
33
33
+
34
34
+
buildInputs = [
35
35
+
libevent
36
36
+
curl
37
37
+
spdlog
38
38
+
];
39
39
+
40
40
+
meta = with lib; {
41
41
+
description = "Simple async wrapper around CURL for C++";
42
42
+
homepage = "https://nheko.im/nheko-reborn/coeurl";
43
43
+
license = licenses.mit;
44
44
+
platforms = platforms.all;
45
45
+
maintainers = with maintainers; [ rnhmjoj ];
46
46
+
};
47
47
+
}
+100
pkgs/by-name/nh/nheko/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
cmake,
6
6
+
asciidoc,
7
7
+
pkg-config,
8
8
+
boost179,
9
9
+
cmark,
10
10
+
coeurl,
11
11
+
curl,
12
12
+
kdsingleapplication,
13
13
+
libevent,
14
14
+
libsecret,
15
15
+
lmdb,
16
16
+
lmdbxx,
17
17
+
mtxclient,
18
18
+
nlohmann_json,
19
19
+
olm,
20
20
+
re2,
21
21
+
spdlog,
22
22
+
gst_all_1,
23
23
+
libnice,
24
24
+
qt6Packages,
25
25
+
}:
26
26
+
27
27
+
stdenv.mkDerivation rec {
28
28
+
pname = "nheko";
29
29
+
version = "0.12.0";
30
30
+
31
31
+
src = fetchFromGitHub {
32
32
+
owner = "Nheko-Reborn";
33
33
+
repo = "nheko";
34
34
+
rev = "v${version}";
35
35
+
hash = "sha256-hQb+K8ogNj/s6ZO2kgS/sZZ35y4CwMeS3lVeMYNucYQ=";
36
36
+
};
37
37
+
38
38
+
nativeBuildInputs = [
39
39
+
asciidoc
40
40
+
cmake
41
41
+
lmdbxx
42
42
+
pkg-config
43
43
+
qt6Packages.wrapQtAppsHook
44
44
+
];
45
45
+
46
46
+
buildInputs =
47
47
+
[
48
48
+
boost179
49
49
+
cmark
50
50
+
coeurl
51
51
+
curl
52
52
+
kdsingleapplication
53
53
+
libevent
54
54
+
libsecret
55
55
+
lmdb
56
56
+
mtxclient
57
57
+
nlohmann_json
58
58
+
olm
59
59
+
qt6Packages.qtbase
60
60
+
qt6Packages.qtimageformats
61
61
+
qt6Packages.qtkeychain
62
62
+
qt6Packages.qtmultimedia
63
63
+
qt6Packages.qttools
64
64
+
qt6Packages.qtwayland
65
65
+
re2
66
66
+
spdlog
67
67
+
]
68
68
+
++ (with gst_all_1; [
69
69
+
gstreamer
70
70
+
gst-plugins-base
71
71
+
(gst-plugins-good.override { qt6Support = true; })
72
72
+
gst-plugins-bad
73
73
+
libnice
74
74
+
]);
75
75
+
76
76
+
cmakeFlags = [
77
77
+
"-DCOMPILE_QML=ON" # see https://github.com/Nheko-Reborn/nheko/issues/389
78
78
+
];
79
79
+
80
80
+
preFixup = ''
81
81
+
# add gstreamer plugins path to the wrapper
82
82
+
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
83
83
+
'';
84
84
+
85
85
+
meta = with lib; {
86
86
+
description = "Desktop client for the Matrix protocol";
87
87
+
homepage = "https://github.com/Nheko-Reborn/nheko";
88
88
+
license = licenses.gpl3Plus;
89
89
+
mainProgram = "nheko";
90
90
+
maintainers = with maintainers; [
91
91
+
ekleog
92
92
+
fpletz
93
93
+
rnhmjoj
94
94
+
];
95
95
+
platforms = platforms.all;
96
96
+
# Should be fixable if a higher clang version is used, see:
97
97
+
# https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
98
98
+
broken = stdenv.hostPlatform.isDarwin;
99
99
+
};
100
100
+
}
-55
pkgs/development/libraries/coeurl/default.nix
···
1
1
-
{ lib
2
2
-
, stdenv
3
3
-
, fetchFromGitLab
4
4
-
, fetchpatch
5
5
-
, ninja
6
6
-
, pkg-config
7
7
-
, meson
8
8
-
, libevent
9
9
-
, curl
10
10
-
, spdlog
11
11
-
}:
12
12
-
13
13
-
stdenv.mkDerivation rec {
14
14
-
pname = "coeurl";
15
15
-
version = "0.3.0";
16
16
-
17
17
-
src = fetchFromGitLab {
18
18
-
domain = "nheko.im";
19
19
-
owner = "nheko-reborn";
20
20
-
repo = pname;
21
21
-
rev = "v${version}";
22
22
-
hash = "sha256-sN+YSddUOdnJLcnHyWdjNm1PpxCwnkwiqSvyrwUrg6w=";
23
23
-
};
24
24
-
patches = [
25
25
-
# Fix compatibility issues with curl > 7.85, see:
26
26
-
# https://nheko.im/nheko-reborn/coeurl/-/commit/d926893007c353fbc149d8538a5762ca8384273a
27
27
-
# PATCH CAN BE REMOVED AFTER 0.3.0
28
28
-
(fetchpatch {
29
29
-
url = "https://nheko.im/nheko-reborn/coeurl/-/commit/d926893007c353fbc149d8538a5762ca8384273a.patch";
30
30
-
hash = "sha256-hOBk7riuVI7k7qe/SMq3XJnFzyZ0gB9kVG7dKvWOsPY=";
31
31
-
})
32
32
-
# Fix error when building with fmt >= 10, see:
33
33
-
# https://nheko.im/nheko-reborn/coeurl/-/commit/831e2ee8e9cf08ea1ee9736cde8370f9d0312abc
34
34
-
# PATCH CAN BE REMOVED AFTER 0.3.0
35
35
-
(fetchpatch {
36
36
-
url = "https://nheko.im/nheko-reborn/coeurl/-/commit/831e2ee8e9cf08ea1ee9736cde8370f9d0312abc.patch";
37
37
-
hash = "sha256-a52Id7Nm3Mmmwv7eL58j6xovjlkpAO4KahVM/Q3H65w=";
38
38
-
})
39
39
-
];
40
40
-
postPatch = ''
41
41
-
substituteInPlace subprojects/curl.wrap --replace '[provides]' '[provide]'
42
42
-
'';
43
43
-
44
44
-
nativeBuildInputs = [ ninja pkg-config meson ];
45
45
-
46
46
-
buildInputs = [ libevent curl spdlog ];
47
47
-
48
48
-
meta = with lib; {
49
49
-
description = "Simple async wrapper around CURL for C++";
50
50
-
homepage = "https://nheko.im/nheko-reborn/coeurl";
51
51
-
license = licenses.mit;
52
52
-
platforms = platforms.all;
53
53
-
maintainers = with maintainers; [ rnhmjoj ];
54
54
-
};
55
55
-
}
+19
-14
pkgs/development/libraries/mtxclient/default.nix
pkgs/by-name/mt/mtxclient/package.nix
···
1
1
-
{ lib
2
2
-
, stdenv
3
3
-
, fetchFromGitHub
4
4
-
, cmake
5
5
-
, pkg-config
6
6
-
, coeurl
7
7
-
, curl
8
8
-
, libevent
9
9
-
, nlohmann_json
10
10
-
, olm
11
11
-
, openssl
12
12
-
, re2
13
13
-
, spdlog
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
cmake,
6
6
+
pkg-config,
7
7
+
coeurl,
8
8
+
curl,
9
9
+
libevent,
10
10
+
nlohmann_json,
11
11
+
olm,
12
12
+
openssl,
13
13
+
re2,
14
14
+
spdlog,
14
15
}:
15
16
16
17
stdenv.mkDerivation rec {
···
56
57
description = "Client API library for the Matrix protocol";
57
58
homepage = "https://github.com/Nheko-Reborn/mtxclient";
58
59
license = licenses.mit;
59
59
-
maintainers = with maintainers; [ fpletz pstn ];
60
60
+
maintainers = with maintainers; [
61
61
+
fpletz
62
62
+
pstn
63
63
+
rnhmjoj
64
64
+
];
60
65
platforms = platforms.all;
61
66
# Should be fixable if a higher clang version is used, see:
62
67
# https://github.com/NixOS/nixpkgs/pull/85922#issuecomment-619287177
-6
pkgs/top-level/all-packages.nix
···
19180
19180
protobuf = protobuf_21;
19181
19181
};
19182
19182
19183
19183
-
coeurl = callPackage ../development/libraries/coeurl { };
19184
19184
-
19185
19183
coercer = callPackage ../tools/security/coercer { };
19186
19184
19187
19185
cogl = callPackage ../development/libraries/cogl {
···
22161
22159
mtdev = callPackage ../development/libraries/mtdev { };
22162
22160
22163
22161
mtpfs = callPackage ../tools/filesystems/mtpfs { };
22164
22164
-
22165
22165
-
mtxclient = callPackage ../development/libraries/mtxclient { };
22166
22162
22167
22163
mu = callPackage ../tools/networking/mu { };
22168
22164
···
31592
31588
nedit = callPackage ../applications/editors/nedit { };
31593
31589
31594
31590
ngt = callPackage ../development/libraries/ngt { };
31595
31595
-
31596
31596
-
nheko = qt6Packages.callPackage ../applications/networking/instant-messengers/nheko { };
31597
31591
31598
31592
notepad-next = libsForQt5.callPackage ../applications/editors/notepad-next { };
31599
31593