Skip to content

Commit a213da1

Browse files
committed
nextcloud-client: move to by-name, tweak
Signed-off-by: lucasew <[email protected]>
1 parent 0e8de0a commit a213da1

File tree

3 files changed

+19
-27
lines changed

3 files changed

+19
-27
lines changed

pkgs/applications/networking/nextcloud-client/default.nix renamed to pkgs/by-name/ne/nextcloud-client/package.nix

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{ lib
2-
, stdenv
2+
, gitUpdater
33
, fetchFromGitHub
4+
, qt6Packages
45
, cmake
56
, extra-cmake-modules
67
, inotify-tools
@@ -11,21 +12,12 @@
1112
, openssl
1213
, pcre
1314
, pkg-config
14-
, qt5compat
15-
, qtbase
16-
, qtkeychain
17-
, qtsvg
18-
, qttools
19-
, qtwebengine
20-
, qtwebsockets
2115
, sphinx
2216
, sqlite
2317
, xdg-utils
24-
, qtwayland
25-
, wrapQtAppsHook
2618
}:
2719

28-
stdenv.mkDerivation rec {
20+
qt6Packages.stdenv.mkDerivation rec {
2921
pname = "nextcloud-client";
3022
version = "3.14.3";
3123

@@ -34,7 +26,7 @@ stdenv.mkDerivation rec {
3426
src = fetchFromGitHub {
3527
owner = "nextcloud-releases";
3628
repo = "desktop";
37-
rev = "refs/tags/v${version}";
29+
tag = "v${version}";
3830
hash = "sha256-nYoBs5EnWiqYRsqc5CPxCIs0NAxSprI9PV0lO/c8khw=";
3931
};
4032

@@ -55,7 +47,7 @@ stdenv.mkDerivation rec {
5547
extra-cmake-modules
5648
librsvg
5749
sphinx
58-
wrapQtAppsHook
50+
qt6Packages.wrapQtAppsHook
5951
];
6052

6153
buildInputs = [
@@ -65,15 +57,15 @@ stdenv.mkDerivation rec {
6557
libsecret
6658
openssl
6759
pcre
68-
qt5compat
69-
qtbase
70-
qtkeychain
71-
qtsvg
72-
qttools
73-
qtwebengine
74-
qtwebsockets
60+
qt6Packages.qt5compat
61+
qt6Packages.qtbase
62+
qt6Packages.qtkeychain
63+
qt6Packages.qtsvg
64+
qt6Packages.qttools
65+
qt6Packages.qtwebengine
66+
qt6Packages.qtwebsockets
67+
qt6Packages.qtwayland
7568
sqlite
76-
qtwayland
7769
];
7870

7971
qtWrapperArgs = [
@@ -92,13 +84,15 @@ stdenv.mkDerivation rec {
9284
make doc-man
9385
'';
9486

95-
meta = with lib; {
87+
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
88+
89+
meta = {
9690
changelog = "https://github.com/nextcloud/desktop/releases/tag/v${version}";
9791
description = "Desktop sync client for Nextcloud";
9892
homepage = "https://nextcloud.com";
99-
license = licenses.gpl2Plus;
100-
maintainers = with maintainers; [ kranzes SuperSandro2000 ];
101-
platforms = platforms.linux;
93+
license = lib.licenses.gpl2Plus;
94+
maintainers = with lib.maintainers; [ kranzes SuperSandro2000 ];
95+
platforms = lib.platforms.linux;
10296
mainProgram = "nextcloud";
10397
};
10498
}

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4445,8 +4445,6 @@ with pkgs;
44454445
nextcloud29Packages = callPackage ../servers/nextcloud/packages { ncVersion = "29"; };
44464446
nextcloud30Packages = callPackage ../servers/nextcloud/packages { ncVersion = "30"; };
44474447

4448-
nextcloud-client = qt6Packages.callPackage ../applications/networking/nextcloud-client { };
4449-
44504448
nextcloud-news-updater = callPackage ../servers/nextcloud/news-updater.nix { };
44514449

44524450
nextcloud-notify_push = callPackage ../servers/nextcloud/notify_push.nix { };

0 commit comments

Comments
 (0)