aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/misc/syncthingtray
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/applications/misc/syncthingtray
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/misc/syncthingtray')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/misc/syncthingtray/default.nix64
1 files changed, 64 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/misc/syncthingtray/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/misc/syncthingtray/default.nix
new file mode 100644
index 000000000000..c45ea27c425e
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/misc/syncthingtray/default.nix
@@ -0,0 +1,64 @@
+{ mkDerivation
+, stdenv
+, lib
+, fetchFromGitHub
+, qtbase
+, qtwebengine
+, qtdeclarative
+, extra-cmake-modules
+, cpp-utilities
+, qtutilities
+, cmake
+, kio
+, plasma-framework
+, qttools
+, webviewSupport ? true
+, jsSupport ? true
+, kioPluginSupport ? true
+, plasmoidSupport ? true
+, systemdSupport ? true
+}:
+
+mkDerivation rec {
+ version = "0.11.0";
+ pname = "syncthingtray";
+
+ src = fetchFromGitHub {
+ owner = "Martchus";
+ repo = "syncthingtray";
+ rev = "v${version}";
+ sha256 = "1lpjrij6y8l738hd7bfig0piglqinnqbadidzw9k0nm53bh4pqrr";
+ };
+
+ buildInputs = [ qtbase cpp-utilities qtutilities ]
+ ++ lib.optionals webviewSupport [ qtwebengine ]
+ ++ lib.optionals jsSupport [ qtdeclarative ]
+ ++ lib.optionals kioPluginSupport [ kio ]
+ ++ lib.optionals plasmoidSupport [ extra-cmake-modules plasma-framework ]
+ ;
+
+ nativeBuildInputs = [ cmake qttools ];
+
+ # No tests are available by upstream, but we test --help anyway
+ doInstallCheck = true;
+ installCheckPhase = ''
+ $out/bin/syncthingtray --help | grep ${version}
+ '';
+
+ cmakeFlags = [
+ # See https://github.com/Martchus/syncthingtray/issues/42
+ "-DQT_PLUGIN_DIR:STRING=${placeholder "out"}/lib/qt-5"
+ ] ++ lib.optionals (!plasmoidSupport) ["-DNO_PLASMOID=ON"]
+ ++ lib.optionals (!kioPluginSupport) ["-DNO_FILE_ITEM_ACTION_PLUGIN=ON"]
+ ++ lib.optionals systemdSupport ["-DSYSTEMD_SUPPORT=ON"]
+ ++ lib.optionals (!webviewSupport) ["-DWEBVIEW_PROVIDER:STRING=none"]
+ ;
+
+ meta = with lib; {
+ homepage = "https://github.com/Martchus/syncthingtray";
+ description = "Tray application and Dolphin/Plasma integration for Syncthing";
+ license = licenses.gpl2;
+ maintainers = with maintainers; [ doronbehar ];
+ platforms = platforms.linux;
+ };
+}