about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/maui/buho.nix (renamed from pkgs/applications/office/buho/default.nix)12
-rw-r--r--pkgs/applications/maui/clip.nix (renamed from pkgs/applications/video/clip/default.nix)12
-rw-r--r--pkgs/applications/maui/communicator.nix57
-rw-r--r--pkgs/applications/maui/default.nix80
-rw-r--r--pkgs/applications/maui/fetch.sh1
-rw-r--r--pkgs/applications/maui/index.nix (renamed from pkgs/applications/misc/index-fm/default.nix)12
-rw-r--r--pkgs/applications/maui/mauikit-accounts.nix30
-rw-r--r--pkgs/applications/maui/mauikit-filebrowsing.nix30
-rw-r--r--pkgs/applications/maui/mauikit-texteditor.nix32
-rw-r--r--pkgs/applications/maui/mauikit.nix37
-rw-r--r--pkgs/applications/maui/nota.nix (renamed from pkgs/applications/editors/maui-nota/default.nix)12
-rw-r--r--pkgs/applications/maui/shelf.nix (renamed from pkgs/applications/office/shelf/default.nix)12
-rw-r--r--pkgs/applications/maui/srcs.nix118
-rw-r--r--pkgs/applications/maui/vvave.nix (renamed from pkgs/applications/video/vvave/default.nix)12
14 files changed, 391 insertions, 66 deletions
diff --git a/pkgs/applications/office/buho/default.nix b/pkgs/applications/maui/buho.nix
index 997b1c9d502d5..481779a6cab77 100644
--- a/pkgs/applications/office/buho/default.nix
+++ b/pkgs/applications/maui/buho.nix
@@ -1,6 +1,5 @@
 { lib
 , mkDerivation
-, fetchFromGitLab
 , cmake
 , extra-cmake-modules
 , applet-window-buttons
@@ -17,17 +16,8 @@
 , qtquickcontrols2
 }:
 
-mkDerivation rec {
+mkDerivation {
   pname = "buho";
-  version = "2.1.1";
-
-  src = fetchFromGitLab {
-    domain = "invent.kde.org";
-    owner = "maui";
-    repo = "buho";
-    rev = "v${version}";
-    sha256 = "sha256-rHjjvjRY2WsyZfj3fzp46copZ1g2ae6PVv9lBNZDzcI=";
-  };
 
   nativeBuildInputs = [
     cmake
diff --git a/pkgs/applications/video/clip/default.nix b/pkgs/applications/maui/clip.nix
index 43f9437c57ad2..10df8c47dfc3c 100644
--- a/pkgs/applications/video/clip/default.nix
+++ b/pkgs/applications/maui/clip.nix
@@ -1,6 +1,5 @@
 { lib
 , mkDerivation
-, fetchFromGitLab
 , cmake
 , extra-cmake-modules
 , applet-window-buttons
@@ -17,17 +16,8 @@
 , ffmpeg
 }:
 
-mkDerivation rec {
+mkDerivation {
   pname = "clip";
-  version = "2.1.1";
-
-  src = fetchFromGitLab {
-    domain = "invent.kde.org";
-    owner = "maui";
-    repo = "clip";
-    rev = "v${version}";
-    sha256 = "sha256-vW3A0PKJSC2QNs+QVZ9w0g4aVmcndhahrpkd4wWoUko=";
-  };
 
   nativeBuildInputs = [
     cmake
diff --git a/pkgs/applications/maui/communicator.nix b/pkgs/applications/maui/communicator.nix
new file mode 100644
index 0000000000000..3fec87d1f512a
--- /dev/null
+++ b/pkgs/applications/maui/communicator.nix
@@ -0,0 +1,57 @@
+{ lib
+, mkDerivation
+, cmake
+, extra-cmake-modules
+, applet-window-buttons
+, karchive
+, kcoreaddons
+, ki18n
+, kio
+, kirigami2
+, mauikit
+, mauikit-accounts
+, mauikit-filebrowsing
+, mauikit-texteditor
+, qtmultimedia
+, qtquickcontrols2
+, kpeople
+, kcontacts
+}:
+
+mkDerivation {
+  pname = "communicator";
+
+  nativeBuildInputs = [
+    cmake
+    extra-cmake-modules
+  ];
+
+  postPatch = ''
+    substituteInPlace CMakeLists.txt \
+      --replace "/usr/share/maui-accounts/manifests" "$out/usr/share/maui-accounts/manifests"
+  '';
+
+  buildInputs = [
+    applet-window-buttons
+    karchive
+    kcoreaddons
+    ki18n
+    kio
+    kirigami2
+    mauikit
+    mauikit-accounts
+    mauikit-filebrowsing
+    mauikit-texteditor
+    qtmultimedia
+    qtquickcontrols2
+    kpeople
+    kcontacts
+  ];
+
+  meta = with lib; {
+    description = "Contacts and dialer application";
+    homepage = "https://invent.kde.org/maui/communicator";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ onny ];
+  };
+}
diff --git a/pkgs/applications/maui/default.nix b/pkgs/applications/maui/default.nix
new file mode 100644
index 0000000000000..b0bc438dbbc28
--- /dev/null
+++ b/pkgs/applications/maui/default.nix
@@ -0,0 +1,80 @@
+/*
+
+# New packages
+
+READ THIS FIRST
+
+This module is for the MauiKit framework and official Maui applications. All
+available packages are listed in `callPackage ./srcs.nix`, although some are not yet
+packaged in Nixpkgs.
+
+IF YOUR PACKAGE IS NOT LISTED IN `callPackage ./srcs.nix`, IT DOES NOT GO HERE.
+
+See also `pkgs/applications/kde` as this is what this is based on.
+
+# Updates
+
+1. Update the URL in `callPackage ./fetch.sh`.
+2. Run `callPackage ./maintainers/scripts/fetch-kde-qt.sh pkgs/applications/maui`
+   from the top of the Nixpkgs tree.
+3. Use `nixpkgs-review wip` to check that everything builds.
+4. Commit the changes and open a pull request.
+
+*/
+
+{ lib
+, libsForQt5
+, fetchurl
+}:
+
+let
+  minQtVersion = "5.15";
+  broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;
+
+  mirror = "mirror://kde";
+  srcs = import ./srcs.nix { inherit fetchurl mirror; };
+
+  mkDerivation = args:
+    let
+      inherit (args) pname;
+      inherit (srcs.${pname}) src version;
+      mkDerivation =
+        libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
+    in
+      mkDerivation (args // {
+        inherit pname version src;
+
+        outputs = args.outputs or [ "out" ];
+
+        meta =
+          let meta = args.meta or {}; in
+          meta // {
+            homepage = meta.homepage or "https://mauikit.org/";
+            platforms = meta.platforms or lib.platforms.linux;
+            broken = meta.broken or broken;
+          };
+      });
+
+  packages = self: with self;
+    let
+      callPackage = self.newScope {
+        inherit mkDerivation;
+      };
+    in {
+      # libraries
+      mauikit = callPackage ./mauikit.nix { };
+      mauikit-accounts = callPackage ./mauikit-accounts.nix { };
+      mauikit-filebrowsing = callPackage ./mauikit-filebrowsing.nix { };
+      mauikit-texteditor = callPackage ./mauikit-texteditor.nix { };
+
+      # applications
+      buho = callPackage ./buho.nix { };
+      clip = callPackage ./clip.nix { };
+      communicator = callPackage ./communicator.nix { };
+      index = callPackage ./index.nix { };
+      nota = callPackage ./nota.nix { };
+      shelf = callPackage ./shelf.nix { };
+      vvave = callPackage ./vvave.nix { };
+    };
+
+in lib.makeScope libsForQt5.newScope packages
diff --git a/pkgs/applications/maui/fetch.sh b/pkgs/applications/maui/fetch.sh
new file mode 100644
index 0000000000000..cc163d289e0a0
--- /dev/null
+++ b/pkgs/applications/maui/fetch.sh
@@ -0,0 +1 @@
+WGET_ARGS=( https://download.kde.org/stable/maui/ -A '*-2.1.2.tar.xz' )
diff --git a/pkgs/applications/misc/index-fm/default.nix b/pkgs/applications/maui/index.nix
index 7414fb2a7e293..bc223adb4b1cf 100644
--- a/pkgs/applications/misc/index-fm/default.nix
+++ b/pkgs/applications/maui/index.nix
@@ -1,6 +1,5 @@
 { lib
 , mkDerivation
-, fetchFromGitLab
 , cmake
 , extra-cmake-modules
 , karchive
@@ -14,17 +13,8 @@
 , qtquickcontrols2
 }:
 
-mkDerivation rec {
+mkDerivation {
   pname = "index-fm";
-  version = "2.1.1";
-
-  src = fetchFromGitLab {
-    domain = "invent.kde.org";
-    owner = "maui";
-    repo = "index-fm";
-    rev = "v${version}";
-    hash = "sha256-F4qgewkPxkbAbeR+MaeRDiw9KIsd/Xx4C0cYEYDkPOE=";
-  };
 
   postPatch = ''
     substituteInPlace CMakeLists.txt \
diff --git a/pkgs/applications/maui/mauikit-accounts.nix b/pkgs/applications/maui/mauikit-accounts.nix
new file mode 100644
index 0000000000000..24308b7624831
--- /dev/null
+++ b/pkgs/applications/maui/mauikit-accounts.nix
@@ -0,0 +1,30 @@
+{ lib
+, mkDerivation
+, cmake
+, extra-cmake-modules
+, kconfig
+, kio
+, mauikit
+}:
+
+mkDerivation {
+  pname = "mauikit-accounts";
+
+  nativeBuildInputs = [
+    cmake
+    extra-cmake-modules
+  ];
+
+  buildInputs = [
+    kconfig
+    kio
+    mauikit
+  ];
+
+  meta = with lib; {
+    homepage = "https://invent.kde.org/maui/mauikit-accounts";
+    description = "MauiKit utilities to handle User Accounts";
+    license = licenses.lgpl21Plus;
+    maintainers = with maintainers; [ onny ];
+  };
+}
diff --git a/pkgs/applications/maui/mauikit-filebrowsing.nix b/pkgs/applications/maui/mauikit-filebrowsing.nix
new file mode 100644
index 0000000000000..d8be881f76496
--- /dev/null
+++ b/pkgs/applications/maui/mauikit-filebrowsing.nix
@@ -0,0 +1,30 @@
+{ lib
+, mkDerivation
+, cmake
+, extra-cmake-modules
+, kconfig
+, kio
+, mauikit
+}:
+
+mkDerivation {
+  pname = "mauikit-filebrowsing";
+
+  nativeBuildInputs = [
+    cmake
+    extra-cmake-modules
+  ];
+
+  buildInputs = [
+    kconfig
+    kio
+    mauikit
+  ];
+
+  meta = with lib; {
+    homepage = "https://invent.kde.org/maui/mauikit-filebrowsing";
+    description = "MauiKit File Browsing utilities and controls";
+    license = licenses.lgpl21Plus;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}
diff --git a/pkgs/applications/maui/mauikit-texteditor.nix b/pkgs/applications/maui/mauikit-texteditor.nix
new file mode 100644
index 0000000000000..75826c2079ac0
--- /dev/null
+++ b/pkgs/applications/maui/mauikit-texteditor.nix
@@ -0,0 +1,32 @@
+{ lib
+, mkDerivation
+, cmake
+, extra-cmake-modules
+, kconfig
+, kio
+, mauikit
+, syntax-highlighting
+}:
+
+mkDerivation {
+  pname = "mauikit-texteditor";
+
+  nativeBuildInputs = [
+    cmake
+    extra-cmake-modules
+  ];
+
+  buildInputs = [
+    kconfig
+    kio
+    mauikit
+    syntax-highlighting
+  ];
+
+  meta = with lib; {
+    homepage = "https://invent.kde.org/maui/mauikit-texteditor";
+    description = "MauiKit Text Editor components";
+    license = licenses.lgpl21Plus;
+    maintainers = with maintainers; [ onny ];
+  };
+}
diff --git a/pkgs/applications/maui/mauikit.nix b/pkgs/applications/maui/mauikit.nix
new file mode 100644
index 0000000000000..76f2f7db5d733
--- /dev/null
+++ b/pkgs/applications/maui/mauikit.nix
@@ -0,0 +1,37 @@
+{ lib
+, mkDerivation
+, cmake
+, extra-cmake-modules
+, kconfig
+, kcoreaddons
+, ki18n
+, knotifications
+, qtbase
+, qtquickcontrols2
+, qtx11extras
+}:
+
+mkDerivation {
+  pname = "mauikit";
+
+  nativeBuildInputs = [
+    cmake
+    extra-cmake-modules
+  ];
+
+  buildInputs = [
+    kconfig
+    kcoreaddons
+    ki18n
+    knotifications
+    qtquickcontrols2
+    qtx11extras
+  ];
+
+  meta = with lib; {
+    homepage = "https://mauikit.org/";
+    description = "Free and modular front-end framework for developing fast and compelling user experiences";
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}
diff --git a/pkgs/applications/editors/maui-nota/default.nix b/pkgs/applications/maui/nota.nix
index 9664aab2b2c7e..cdf4943df5fec 100644
--- a/pkgs/applications/editors/maui-nota/default.nix
+++ b/pkgs/applications/maui/nota.nix
@@ -1,6 +1,5 @@
 { lib
 , mkDerivation
-, fetchFromGitLab
 , cmake
 , extra-cmake-modules
 , applet-window-buttons
@@ -16,17 +15,8 @@
 , qtquickcontrols2
 }:
 
-mkDerivation rec {
+mkDerivation {
   pname = "nota";
-  version = "2.1.1";
-
-  src = fetchFromGitLab {
-    domain = "invent.kde.org";
-    owner = "maui";
-    repo = "nota";
-    rev = "v${version}";
-    sha256 = "sha256-Sgpm5njhQDe9ohAVFcN5iPNC6v9+QZnGRPYxuLvUno8=";
-  };
 
   nativeBuildInputs = [
     cmake
diff --git a/pkgs/applications/office/shelf/default.nix b/pkgs/applications/maui/shelf.nix
index 7ad3b915188c1..3942b9a34d6a1 100644
--- a/pkgs/applications/office/shelf/default.nix
+++ b/pkgs/applications/maui/shelf.nix
@@ -1,6 +1,5 @@
 { lib
 , mkDerivation
-, fetchFromGitLab
 , cmake
 , extra-cmake-modules
 , applet-window-buttons
@@ -17,17 +16,8 @@
 , poppler
 }:
 
-mkDerivation rec {
+mkDerivation {
   pname = "shelf";
-  version = "2.1.1";
-
-  src = fetchFromGitLab {
-    domain = "invent.kde.org";
-    owner = "maui";
-    repo = "shelf";
-    rev = "v${version}";
-    sha256 = "sha256-0a5UHrYrkLR35cezjin+K9cTk3+aLeUAkvBbmKMK61w=";
-  };
 
   nativeBuildInputs = [
     cmake
diff --git a/pkgs/applications/maui/srcs.nix b/pkgs/applications/maui/srcs.nix
new file mode 100644
index 0000000000000..a432814d49ec2
--- /dev/null
+++ b/pkgs/applications/maui/srcs.nix
@@ -0,0 +1,118 @@
+# DO NOT EDIT! This file is generated automatically.
+# Command: ./maintainers/scripts/fetch-kde-qt.sh pkgs/applications/maui
+{ fetchurl, mirror }:
+
+{
+  buho = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/buho/2.1.2/buho-2.1.2.tar.xz";
+      sha256 = "0xc623w1zp0yh929b8h6mf9r4frnfabd30634ba43x4ac12jk7g8";
+      name = "buho-2.1.2.tar.xz";
+    };
+  };
+  clip = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/clip/2.1.2/clip-2.1.2.tar.xz";
+      sha256 = "168lz2qi4y56pwfwyzqnhwz4lgh2763w260l860527aw049crv4z";
+      name = "clip-2.1.2.tar.xz";
+    };
+  };
+  communicator = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/communicator/2.1.2/communicator-2.1.2.tar.xz";
+      sha256 = "0m7axdjpl7s9cz6fcaj4kwr9wdxybwdb76k9rz5yigyy35vigcfi";
+      name = "communicator-2.1.2.tar.xz";
+    };
+  };
+  index-fm = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/index/2.1.2/index-fm-2.1.2.tar.xz";
+      sha256 = "1yawnzx51h6yrlnivbwz9d7481k382pzg3jnczrajfjnv7ir29dn";
+      name = "index-fm-2.1.2.tar.xz";
+    };
+  };
+  mauikit = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/mauikit/2.1.2/mauikit-2.1.2.tar.xz";
+      sha256 = "1n5p8107lwa4m5gbwlcqmmdlyw15vjaq0dfaz5zal733s6rq2gm7";
+      name = "mauikit-2.1.2.tar.xz";
+    };
+  };
+  mauikit-accounts = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/mauikit-accounts/2.1.2/mauikit-accounts-2.1.2.tar.xz";
+      sha256 = "00nc54gi34r8z6cwa0h8490gd0w01a245rh2g4d9fvbkrybwg7sk";
+      name = "mauikit-accounts-2.1.2.tar.xz";
+    };
+  };
+  mauikit-filebrowsing = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/mauikit-filebrowsing/2.1.2/mauikit-filebrowsing-2.1.2.tar.xz";
+      sha256 = "09pfjr449mkf27ywmwsvflzq0dgaiprw8b2lcms3m5ad7i6jvvyq";
+      name = "mauikit-filebrowsing-2.1.2.tar.xz";
+    };
+  };
+  mauikit-imagetools = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/mauikit-imagetools/2.1.2/mauikit-imagetools-2.1.2.tar.xz";
+      sha256 = "1830x8xwyjs7bj0qi63pl1dk5h2qi6f84mki1schviddddq5cv6j";
+      name = "mauikit-imagetools-2.1.2.tar.xz";
+    };
+  };
+  mauikit-texteditor = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/mauikit-texteditor/2.1.2/mauikit-texteditor-2.1.2.tar.xz";
+      sha256 = "19z9qry56h2624kdx5xnfjzd3spv5shc87p2m6ix33x9mmrf92p1";
+      name = "mauikit-texteditor-2.1.2.tar.xz";
+    };
+  };
+  nota = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/nota/2.1.2/nota-2.1.2.tar.xz";
+      sha256 = "11z1mw6yhwin3wj19gj9495az4p40yjkwrn0nb6i8h9b0nh44pn7";
+      name = "nota-2.1.2.tar.xz";
+    };
+  };
+  pix = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/pix/2.1.2/pix-2.1.2.tar.xz";
+      sha256 = "0ycpazi267pl4l178i34lwzc0ssjklp0indz79r7mcfpr1vicz1s";
+      name = "pix-2.1.2.tar.xz";
+    };
+  };
+  shelf = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/shelf/2.1.2/shelf-2.1.2.tar.xz";
+      sha256 = "0f3781l8wfbpj0irmri0zkp3ia3qlik4aaq3w6qk97xjv24d98xh";
+      name = "shelf-2.1.2.tar.xz";
+    };
+  };
+  station = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/station/2.1.2/station-2.1.2.tar.xz";
+      sha256 = "0lrw7rf8i277nl9bwyx5sc05bswgll00k1jzad1i69rwdfiy9ghg";
+      name = "station-2.1.2.tar.xz";
+    };
+  };
+  vvave = {
+    version = "2.1.2";
+    src = fetchurl {
+      url = "${mirror}/stable/maui/vvave/2.1.2/vvave-2.1.2.tar.xz";
+      sha256 = "14b6b034899vyvvhzl2jqifqq715lb26dnw3d5wxzxhdplfd7pdf";
+      name = "vvave-2.1.2.tar.xz";
+    };
+  };
+}
diff --git a/pkgs/applications/video/vvave/default.nix b/pkgs/applications/maui/vvave.nix
index 1612ce4200121..bd5b972920105 100644
--- a/pkgs/applications/video/vvave/default.nix
+++ b/pkgs/applications/maui/vvave.nix
@@ -1,6 +1,5 @@
 { lib
 , mkDerivation
-, fetchFromGitLab
 , cmake
 , extra-cmake-modules
 , applet-window-buttons
@@ -17,17 +16,8 @@
 , taglib
 }:
 
-mkDerivation rec {
+mkDerivation {
   pname = "vvave";
-  version = "2.1.1";
-
-  src = fetchFromGitLab {
-    domain = "invent.kde.org";
-    owner = "maui";
-    repo = "vvave";
-    rev = "v${version}";
-    sha256 = "sha256-ykX1kd3106KTDTJQIGk6miSgbj+oROiXQl/nkCjTphE=";
-  };
 
   nativeBuildInputs = [
     cmake