You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. mkDerivation rec {
  22. version = "0.10.1";
  23. pname = "syncthingtray";
  24. src = fetchFromGitHub {
  25. owner = "Martchus";
  26. repo = "syncthingtray";
  27. rev = "v${version}";
  28. sha256 = "107w6dlr1m5g60j342p2b6ipfn1r8kyad8av58nh8ibzycghbfv2";
  29. };
  30. buildInputs = [ qtbase cpp-utilities qtutilities ]
  31. ++ lib.optionals webviewSupport [ qtwebengine ]
  32. ++ lib.optionals jsSupport [ qtdeclarative ]
  33. ++ lib.optionals kioPluginSupport [ kio ]
  34. ++ lib.optionals plasmoidSupport [ extra-cmake-modules plasma-framework ]
  35. ;
  36. nativeBuildInputs = [ cmake qttools ];
  37. cmakeFlags = [
  38. # See https://github.com/Martchus/syncthingtray/issues/42
  39. "-DQT_PLUGIN_DIR:STRING=${placeholder "out"}/lib/qt-5"
  40. ] ++ lib.optionals (!plasmoidSupport) ["-DNO_PLASMOID=ON"]
  41. ++ lib.optionals (!kioPluginSupport) ["-DNO_FILE_ITEM_ACTION_PLUGIN=ON"]
  42. ++ lib.optionals systemdSupport ["-DSYSTEMD_SUPPORT=ON"]
  43. ;
  44. meta = with lib; {
  45. homepage = "https://github.com/Martchus/syncthingtray";
  46. description = "Tray application and Dolphin/Plasma integration for Syncthing";
  47. license = licenses.gpl2;
  48. maintainers = with maintainers; [ doronbehar ];
  49. platforms = platforms.linux;
  50. };
  51. }