3
0
Fork 0
forked from mirrors/nixpkgs

syncthingtray: init at 0.9.1 (#65480)

This commit is contained in:
Doron Behar 2019-08-23 19:18:56 +03:00 committed by Timo Kaufmann
parent 25559a5597
commit b4ae37b39a
2 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,57 @@
{ 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.9.1";
pname = "syncthingtray";
src = fetchFromGitHub {
owner = "Martchus";
repo = "syncthingtray";
rev = "v${version}";
sha256 = "0ijwpwlwwbfh9fdfbwz6dgi6hpmaav2jm56mzxm6as50iwnb59fx";
};
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 ];
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"]
;
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;
};
}

View file

@ -20783,6 +20783,15 @@ in
syncthing-tray = callPackage ../applications/misc/syncthing-tray { };
syncthingtray = libsForQt5.callPackage ../applications/misc/syncthingtray { };
syncthingtray-minumal = libsForQt5.callPackage ../applications/misc/syncthingtray {
webviewSupport = false;
jsSupport = false;
kioPluginSupport = false;
plasmoidSupport = false;
systemdSupport = true;
};
synergy = callPackage ../applications/misc/synergy {
stdenv = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv;
inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa CoreServices ScreenSaver;