git.iko.soy/typeable/nixpkgs
on master help sign in
syncthingtray: init at 0.9.1 (#65480)
commitb4ae37b39a62460a993596e821ae9ce1a9a229c3 authorDoron Behar <doron.behar@gmail.com> dateFri 23 Aug 2019, 19:18 (7 years ago) parent25559a5
2 files changed+66
pkgs/applications/misc/syncthingtray/default.nix+57 pkgs/top-level/all-packages.nix+9
pkgs/applications/misc/syncthingtray/default.nixnew file+57
@@ -0,0 +1,57 @@
1+{ mkDerivation
2+, stdenv
3+, lib
4+, fetchFromGitHub
5+, qtbase
6+, qtwebengine
7+, qtdeclarative
8+, extra-cmake-modules
9+, cpp-utilities
10+, qtutilities
11+, cmake
12+, kio
13+, plasma-framework
14+, qttools
15+, webviewSupport ? true
16+, jsSupport ? true
17+, kioPluginSupport ? true
18+, plasmoidSupport ? true
19+, systemdSupport ? true
20+}:
21+
22+mkDerivation rec {
23+ version = "0.9.1";
24+ pname = "syncthingtray";
25+
26+ src = fetchFromGitHub {
27+ owner = "Martchus";
28+ repo = "syncthingtray";
29+ rev = "v${version}";
30+ sha256 = "0ijwpwlwwbfh9fdfbwz6dgi6hpmaav2jm56mzxm6as50iwnb59fx";
31+ };
32+
33+ buildInputs = [ qtbase cpp-utilities qtutilities ]
34+ ++ lib.optionals webviewSupport [ qtwebengine ]
35+ ++ lib.optionals jsSupport [ qtdeclarative ]
36+ ++ lib.optionals kioPluginSupport [ kio ]
37+ ++ lib.optionals plasmoidSupport [ extra-cmake-modules plasma-framework ]
38+ ;
39+
40+ nativeBuildInputs = [ cmake qttools ];
41+
42+ cmakeFlags = [
43+ # See https://github.com/Martchus/syncthingtray/issues/42
44+ "-DQT_PLUGIN_DIR:STRING=${placeholder "out"}/lib/qt-5"
45+ ] ++ lib.optionals (!plasmoidSupport) ["-DNO_PLASMOID=ON"]
46+ ++ lib.optionals (!kioPluginSupport) ["-DNO_FILE_ITEM_ACTION_PLUGIN=ON"]
47+ ++ lib.optionals systemdSupport ["-DSYSTEMD_SUPPORT=ON"]
48+ ;
49+
50+ meta = with lib; {
51+ homepage = "https://github.com/Martchus/syncthingtray";
52+ description = "Tray application and Dolphin/Plasma integration for Syncthing";
53+ license = licenses.gpl2;
54+ maintainers = with maintainers; [ doronbehar ];
55+ platforms = platforms.linux;
56+ };
57+}
pkgs/top-level/all-packages.nix+9
@@ -20783,6 +20783,15 @@ in
2078320783
2078420784 syncthing-tray = callPackage ../applications/misc/syncthing-tray { };
2078520785
20786+ syncthingtray = libsForQt5.callPackage ../applications/misc/syncthingtray { };
20787+ syncthingtray-minumal = libsForQt5.callPackage ../applications/misc/syncthingtray {
20788+ webviewSupport = false;
20789+ jsSupport = false;
20790+ kioPluginSupport = false;
20791+ plasmoidSupport = false;
20792+ systemdSupport = true;
20793+ };
20794+
2078620795 synergy = callPackage ../applications/misc/synergy {
2078720796 stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
2078820797 inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa CoreServices ScreenSaver;