about summary refs log tree commit diff
path: root/pkgs/applications/plasma-mobile
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-07-13 21:01:22 -0400
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2021-10-05 23:21:44 -0400
commit3f7fa2eca8cf7e1f807f66bf0bb5ac45fe7c7f80 (patch)
tree9538d2b58f6da601f9810e4c8a7c6db5787279b1 /pkgs/applications/plasma-mobile
parentf974dc304bc6bf598f4f6a63197048950ac31403 (diff)
applications/plasma-mobile: Add empty plasma-mobile package set
Diffstat (limited to 'pkgs/applications/plasma-mobile')
-rw-r--r--pkgs/applications/plasma-mobile/default.nix66
1 files changed, 66 insertions, 0 deletions
diff --git a/pkgs/applications/plasma-mobile/default.nix b/pkgs/applications/plasma-mobile/default.nix
new file mode 100644
index 0000000000000..8196c92ef8157
--- /dev/null
+++ b/pkgs/applications/plasma-mobile/default.nix
@@ -0,0 +1,66 @@
+/*
+
+# New packages
+
+READ THIS FIRST
+
+This module is for official packages in the Plasma Mobile Gear. All
+available packages are listed in `./srcs.nix`, although some are not yet
+packaged in Nixpkgs.
+
+IF YOUR PACKAGE IS NOT LISTED IN `./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 `./fetch.sh`.
+2. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/applications/plasma-mobile`
+   from the top of the Nixpkgs tree.
+3. Use `nox-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://www.plasma-mobile.org/";
+            platforms = meta.platforms or lib.platforms.linux;
+            broken = meta.broken or broken;
+          };
+      });
+
+  packages = self: with self;
+    let
+      callPackage = self.newScope {
+        inherit mkDerivation;
+      };
+    in {
+    };
+
+in lib.makeScope libsForQt5.newScope packages