2016-06-17 15:47:16 +01:00
|
|
|
/*
|
|
|
|
|
2017-02-17 14:05:39 +00:00
|
|
|
# New packages
|
|
|
|
|
|
|
|
READ THIS FIRST
|
|
|
|
|
|
|
|
This module is for official packages in KDE Frameworks 5. All available packages
|
|
|
|
are listed in `./srcs.nix`, although a few are not yet packaged in Nixpkgs (see
|
|
|
|
below).
|
|
|
|
|
|
|
|
IF YOUR PACKAGE IS NOT LISTED IN `./srcs.nix`, IT DOES NOT GO HERE.
|
|
|
|
|
|
|
|
Many of the packages released upstream are not yet built in Nixpkgs due to lack
|
|
|
|
of demand. To add a Nixpkgs build for an upstream package, copy one of the
|
|
|
|
existing packages here and modify it as necessary.
|
|
|
|
|
2016-06-17 15:47:16 +01:00
|
|
|
# Updates
|
|
|
|
|
2017-02-17 14:05:39 +00:00
|
|
|
1. Update the URL in `./fetch.sh`.
|
|
|
|
2. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/development/libraries/kde-frameworks`
|
|
|
|
from the top of the Nixpkgs tree.
|
2017-02-25 18:25:44 +00:00
|
|
|
3. Use `nox-review wip` to check that everything builds.
|
2017-02-17 14:05:39 +00:00
|
|
|
4. Commit the changes and open a pull request.
|
2016-06-17 15:47:16 +01:00
|
|
|
|
|
|
|
*/
|
2016-04-21 16:32:21 +01:00
|
|
|
|
2017-06-02 16:49:32 +01:00
|
|
|
{ libsForQt5, lib, fetchurl }:
|
2016-04-21 16:32:21 +01:00
|
|
|
|
|
|
|
let
|
2017-05-15 18:05:35 +01:00
|
|
|
|
|
|
|
srcs = import ./srcs.nix {
|
|
|
|
inherit fetchurl;
|
|
|
|
mirror = "mirror://kde";
|
|
|
|
};
|
|
|
|
|
|
|
|
mkDerivation = libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
|
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
packages = self: with self;
|
2017-05-24 19:20:10 +01:00
|
|
|
# SUPPORT
|
2017-02-26 12:49:15 +00:00
|
|
|
let
|
2017-05-15 18:05:35 +01:00
|
|
|
|
2017-05-22 19:49:07 +01:00
|
|
|
propagate = out:
|
2017-05-15 18:05:35 +01:00
|
|
|
let setupHook = { writeScript }:
|
2017-06-22 23:28:15 +01:00
|
|
|
writeScript "setup-hook" ''
|
2019-11-23 18:23:52 +00:00
|
|
|
if [ "''${hookName:-}" != postHook ]; then
|
2017-06-22 23:28:15 +01:00
|
|
|
postHooks+=("source @dev@/nix-support/setup-hook")
|
|
|
|
else
|
|
|
|
# Propagate $dev so that this setup hook is propagated
|
|
|
|
# But only if there is a separate $dev output
|
2019-07-05 16:41:41 +01:00
|
|
|
if [ "''${outputDev:?}" != out ]; then
|
2019-11-25 20:50:44 +00:00
|
|
|
propagatedBuildInputs="''${propagatedBuildInputs-} @dev@"
|
2017-05-15 18:05:35 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
in callPackage setupHook {};
|
|
|
|
|
2017-05-22 19:49:07 +01:00
|
|
|
propagateBin = propagate "bin";
|
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
callPackage = self.newScope {
|
2017-05-15 18:05:35 +01:00
|
|
|
|
2017-05-22 19:49:07 +01:00
|
|
|
inherit propagate propagateBin;
|
2017-05-15 18:05:35 +01:00
|
|
|
|
|
|
|
mkDerivation = args:
|
|
|
|
let
|
|
|
|
|
|
|
|
inherit (args) name;
|
2019-08-13 22:52:01 +01:00
|
|
|
inherit (srcs.${name}) src version;
|
2017-05-15 18:05:35 +01:00
|
|
|
|
2017-09-27 01:00:23 +01:00
|
|
|
outputs = args.outputs or [ "bin" "dev" "out" ];
|
2019-07-05 16:41:41 +01:00
|
|
|
hasSeparateDev = lib.elem "dev" outputs;
|
2017-05-15 18:05:35 +01:00
|
|
|
|
2019-07-05 16:41:41 +01:00
|
|
|
defaultSetupHook = if hasSeparateDev then propagateBin else null;
|
2017-05-15 18:05:35 +01:00
|
|
|
setupHook = args.setupHook or defaultSetupHook;
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.kde.org;
|
2017-05-15 18:05:35 +01:00
|
|
|
license = with lib.licenses; [
|
|
|
|
lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
|
|
|
|
];
|
2019-08-16 14:28:31 +01:00
|
|
|
maintainers = with lib.maintainers; [ ttuegel nyanloutre ];
|
2017-05-15 18:05:35 +01:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
} // (args.meta or {});
|
|
|
|
|
|
|
|
in mkDerivation (args // {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
inherit meta outputs setupHook src;
|
|
|
|
});
|
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
};
|
2017-05-15 18:05:35 +01:00
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
in {
|
2017-05-24 19:20:10 +01:00
|
|
|
extra-cmake-modules = callPackage ./extra-cmake-modules {};
|
|
|
|
|
|
|
|
# TIER 1
|
2017-02-26 12:49:15 +00:00
|
|
|
attica = callPackage ./attica.nix {};
|
|
|
|
bluez-qt = callPackage ./bluez-qt.nix {};
|
|
|
|
breeze-icons = callPackage ./breeze-icons.nix {};
|
|
|
|
kapidox = callPackage ./kapidox.nix {};
|
|
|
|
karchive = callPackage ./karchive.nix {};
|
2019-12-11 21:12:57 +00:00
|
|
|
kcalendarcore = callPackage ./kcalendarcore.nix {};
|
2017-02-26 12:49:15 +00:00
|
|
|
kcodecs = callPackage ./kcodecs.nix {};
|
|
|
|
kconfig = callPackage ./kconfig.nix {};
|
2020-02-02 21:19:05 +00:00
|
|
|
kcontacts = callPackage ./kcontacts.nix {};
|
2017-02-26 12:49:15 +00:00
|
|
|
kcoreaddons = callPackage ./kcoreaddons.nix {};
|
|
|
|
kdbusaddons = callPackage ./kdbusaddons.nix {};
|
2017-05-24 19:20:10 +01:00
|
|
|
kdnssd = callPackage ./kdnssd.nix {};
|
|
|
|
kguiaddons = callPackage ./kguiaddons.nix {};
|
|
|
|
ki18n = callPackage ./ki18n.nix {};
|
|
|
|
kidletime = callPackage ./kidletime.nix {};
|
|
|
|
kitemmodels = callPackage ./kitemmodels.nix {};
|
|
|
|
kitemviews = callPackage ./kitemviews.nix {};
|
|
|
|
kplotting = callPackage ./kplotting.nix {};
|
|
|
|
kwayland = callPackage ./kwayland.nix {};
|
|
|
|
kwidgetsaddons = callPackage ./kwidgetsaddons.nix {};
|
|
|
|
kwindowsystem = callPackage ./kwindowsystem {};
|
|
|
|
modemmanager-qt = callPackage ./modemmanager-qt.nix {};
|
|
|
|
networkmanager-qt = callPackage ./networkmanager-qt.nix {};
|
|
|
|
oxygen-icons5 = callPackage ./oxygen-icons5.nix {};
|
|
|
|
prison = callPackage ./prison.nix {};
|
|
|
|
solid = callPackage ./solid.nix {};
|
|
|
|
sonnet = callPackage ./sonnet.nix {};
|
|
|
|
syntax-highlighting = callPackage ./syntax-highlighting.nix {};
|
|
|
|
threadweaver = callPackage ./threadweaver.nix {};
|
2017-10-11 05:29:30 +01:00
|
|
|
kirigami2 = callPackage ./kirigami2.nix {};
|
2018-04-20 12:57:36 +01:00
|
|
|
kholidays = callPackage ./kholidays.nix {};
|
2017-05-24 19:20:10 +01:00
|
|
|
|
|
|
|
# TIER 2
|
|
|
|
kactivities = callPackage ./kactivities.nix {};
|
|
|
|
kactivities-stats = callPackage ./kactivities-stats.nix {};
|
|
|
|
kauth = callPackage ./kauth {};
|
|
|
|
kcompletion = callPackage ./kcompletion.nix {};
|
|
|
|
kcrash = callPackage ./kcrash.nix {};
|
|
|
|
kdoctools = callPackage ./kdoctools {};
|
|
|
|
kfilemetadata = callPackage ./kfilemetadata {};
|
|
|
|
kimageformats = callPackage ./kimageformats.nix {};
|
|
|
|
kjobwidgets = callPackage ./kjobwidgets.nix {};
|
|
|
|
knotifications = callPackage ./knotifications.nix {};
|
|
|
|
kpackage = callPackage ./kpackage {};
|
|
|
|
kpty = callPackage ./kpty.nix {};
|
|
|
|
kunitconversion = callPackage ./kunitconversion.nix {};
|
2018-09-13 08:28:22 +01:00
|
|
|
syndication = callPackage ./syndication.nix {};
|
2017-05-24 19:20:10 +01:00
|
|
|
|
|
|
|
# TIER 3
|
|
|
|
baloo = callPackage ./baloo.nix {};
|
|
|
|
kbookmarks = callPackage ./kbookmarks.nix {};
|
|
|
|
kcmutils = callPackage ./kcmutils {};
|
|
|
|
kconfigwidgets = callPackage ./kconfigwidgets {};
|
2017-02-26 12:49:15 +00:00
|
|
|
kdeclarative = callPackage ./kdeclarative.nix {};
|
|
|
|
kded = callPackage ./kded.nix {};
|
|
|
|
kdesignerplugin = callPackage ./kdesignerplugin.nix {};
|
|
|
|
kdesu = callPackage ./kdesu.nix {};
|
2018-04-28 00:21:25 +01:00
|
|
|
kdewebkit = callPackage ./kdewebkit.nix {};
|
2017-02-26 12:49:15 +00:00
|
|
|
kemoticons = callPackage ./kemoticons.nix {};
|
|
|
|
kglobalaccel = callPackage ./kglobalaccel.nix {};
|
|
|
|
kiconthemes = callPackage ./kiconthemes {};
|
|
|
|
kinit = callPackage ./kinit {};
|
|
|
|
kio = callPackage ./kio {};
|
|
|
|
knewstuff = callPackage ./knewstuff.nix {};
|
|
|
|
knotifyconfig = callPackage ./knotifyconfig.nix {};
|
|
|
|
kparts = callPackage ./kparts.nix {};
|
|
|
|
kpeople = callPackage ./kpeople.nix {};
|
|
|
|
krunner = callPackage ./krunner.nix {};
|
|
|
|
kservice = callPackage ./kservice {};
|
|
|
|
ktexteditor = callPackage ./ktexteditor.nix {};
|
|
|
|
ktextwidgets = callPackage ./ktextwidgets.nix {};
|
|
|
|
kwallet = callPackage ./kwallet.nix {};
|
|
|
|
kxmlgui = callPackage ./kxmlgui.nix {};
|
|
|
|
kxmlrpcclient = callPackage ./kxmlrpcclient.nix {};
|
|
|
|
plasma-framework = callPackage ./plasma-framework.nix {};
|
2018-08-23 23:05:55 +01:00
|
|
|
kpurpose = callPackage ./purpose.nix {};
|
2017-05-24 19:20:10 +01:00
|
|
|
|
|
|
|
# TIER 4
|
|
|
|
frameworkintegration = callPackage ./frameworkintegration.nix {};
|
|
|
|
|
|
|
|
# PORTING AIDS
|
|
|
|
kdelibs4support = callPackage ./kdelibs4support {};
|
|
|
|
khtml = callPackage ./khtml.nix {};
|
|
|
|
kjs = callPackage ./kjs.nix {};
|
|
|
|
kjsembed = callPackage ./kjsembed.nix {};
|
|
|
|
kmediaplayer = callPackage ./kmediaplayer.nix {};
|
|
|
|
kross = callPackage ./kross.nix {};
|
|
|
|
|
2017-02-25 20:22:26 +00:00
|
|
|
};
|
2017-02-26 12:49:15 +00:00
|
|
|
|
|
|
|
in lib.makeScope libsForQt5.newScope packages
|