···11+/*
22+33+# New packages
44+55+READ THIS FIRST
66+77+This module is for official packages in the Plasma Mobile Gear. All
88+available packages are listed in `./srcs.nix`, although some are not yet
99+packaged in Nixpkgs.
1010+1111+IF YOUR PACKAGE IS NOT LISTED IN `./srcs.nix`, IT DOES NOT GO HERE.
1212+1313+See also `pkgs/applications/kde` as this is what this is based on.
1414+1515+# Updates
1616+1717+1. Update the URL in `./fetch.sh`.
1818+2. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/applications/plasma-mobile`
1919+ from the top of the Nixpkgs tree.
2020+3. Use `nox-review wip` to check that everything builds.
2121+4. Commit the changes and open a pull request.
2222+2323+*/
2424+2525+{ lib
2626+, libsForQt5
2727+, fetchurl
2828+}:
2929+3030+let
3131+ minQtVersion = "5.15";
3232+ broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;
3333+3434+ mirror = "mirror://kde";
3535+ srcs = import ./srcs.nix { inherit fetchurl mirror; };
3636+3737+ mkDerivation = args:
3838+ let
3939+ inherit (args) pname;
4040+ inherit (srcs.${pname}) src version;
4141+ mkDerivation =
4242+ libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
4343+ in
4444+ mkDerivation (args // {
4545+ inherit pname version src;
4646+4747+ outputs = args.outputs or [ "out" ];
4848+4949+ meta =
5050+ let meta = args.meta or {}; in
5151+ meta // {
5252+ homepage = meta.homepage or "https://www.plasma-mobile.org/";
5353+ platforms = meta.platforms or lib.platforms.linux;
5454+ broken = meta.broken or broken;
5555+ };
5656+ });
5757+5858+ packages = self: with self;
5959+ let
6060+ callPackage = self.newScope {
6161+ inherit mkDerivation;
6262+ };
6363+ in {
6464+ };
6565+6666+in lib.makeScope libsForQt5.newScope packages