aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/networking/maestral-qt/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/maestral-qt/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/networking/maestral-qt/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/maestral-qt/default.nix b/nixpkgs/pkgs/applications/networking/maestral-qt/default.nix
new file mode 100644
index 00000000000..ea6303a3c34
--- /dev/null
+++ b/nixpkgs/pkgs/applications/networking/maestral-qt/default.nix
@@ -0,0 +1,49 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, python3
+, wrapQtAppsHook
+}:
+
+python3.pkgs.buildPythonApplication rec {
+ pname = "maestral-qt";
+ version = "1.1.0";
+ disabled = python3.pkgs.pythonOlder "3.6";
+
+ src = fetchFromGitHub {
+ owner = "SamSchott";
+ repo = "maestral-qt";
+ rev = "v${version}";
+ sha256 = "0clzzwwbrynfbvawhaaa4mp2qi8smng31mmz0is166z6g67bwdl6";
+ };
+
+ propagatedBuildInputs = with python3.pkgs; [
+ bugsnag
+ click
+ markdown2
+ maestral
+ pyqt5
+ ];
+
+ nativeBuildInputs = [ wrapQtAppsHook ];
+
+ makeWrapperArgs = [
+ # Firstly, add all necessary QT variables
+ "\${qtWrapperArgs[@]}"
+
+ # Add the installed directories to the python path so the daemon can find them
+ "--prefix" "PYTHONPATH" ":" "${stdenv.lib.concatStringsSep ":" (map (p: p + "/lib/${python3.libPrefix}/site-packages") (python3.pkgs.requiredPythonModules python3.pkgs.maestral.propagatedBuildInputs))}"
+ "--prefix" "PYTHONPATH" ":" "${python3.pkgs.maestral}/lib/${python3.libPrefix}/site-packages"
+ ];
+
+ # no tests
+ doCheck = false;
+
+ meta = with lib; {
+ description = "GUI front-end for maestral (an open-source Dropbox client) for Linux";
+ license = licenses.mit;
+ maintainers = with maintainers; [ peterhoeg ];
+ platforms = platforms.linux;
+ inherit (src.meta) homepage;
+ };
+}