2016-06-17 16:47:16 +02:00
|
|
|
/*
|
|
|
|
|
2017-02-17 15:04:43 +01:00
|
|
|
# New packages
|
|
|
|
|
|
|
|
READ THIS FIRST
|
|
|
|
|
|
|
|
This module is for official packages in KDE Plasma 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 16:47:16 +02:00
|
|
|
# Updates
|
|
|
|
|
2017-02-17 15:04:43 +01:00
|
|
|
1. Update the URL in `./fetch.sh`.
|
2017-02-25 20:35:00 +01:00
|
|
|
2. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/desktops/plasma-5`
|
2017-02-17 15:04:43 +01:00
|
|
|
from the top of the Nixpkgs tree.
|
2017-02-25 19:25:44 +01:00
|
|
|
3. Use `nox-review wip` to check that everything builds.
|
2017-02-17 15:04:43 +01:00
|
|
|
4. Commit the changes and open a pull request.
|
2016-06-17 16:47:16 +02:00
|
|
|
|
|
|
|
*/
|
2016-04-21 18:01:22 +02:00
|
|
|
|
2017-02-25 19:25:44 +01:00
|
|
|
{
|
2017-06-02 17:49:32 +02:00
|
|
|
libsForQt5, lib, fetchurl,
|
2017-02-25 21:32:46 +01:00
|
|
|
gconf,
|
2017-02-25 19:25:44 +01:00
|
|
|
debug ? false,
|
|
|
|
}:
|
2016-04-21 18:01:22 +02:00
|
|
|
|
|
|
|
let
|
2017-05-15 18:44:58 +02:00
|
|
|
srcs = import ./srcs.nix {
|
|
|
|
inherit fetchurl;
|
|
|
|
mirror = "mirror://kde";
|
|
|
|
};
|
|
|
|
|
2017-05-26 22:44:36 +02:00
|
|
|
mkDerivation = libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
|
|
|
|
|
2017-02-25 21:32:46 +01:00
|
|
|
packages = self: with self;
|
|
|
|
let
|
2017-05-26 22:44:36 +02:00
|
|
|
|
|
|
|
propagate = out:
|
|
|
|
let setupHook = { writeScript }:
|
2017-06-23 00:28:15 +02:00
|
|
|
writeScript "setup-hook" ''
|
|
|
|
if [ "$hookName" != postHook ]; then
|
|
|
|
postHooks+=("source @dev@/nix-support/setup-hook")
|
|
|
|
else
|
|
|
|
# Propagate $${out} output
|
|
|
|
propagatedUserEnvPkgs="$propagatedUserEnvPkgs @${out}@"
|
|
|
|
|
|
|
|
if [ -z "$outputDev" ]; then
|
|
|
|
echo "error: \$outputDev is unset!" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Propagate $dev so that this setup hook is propagated
|
|
|
|
# But only if there is a separate $dev output
|
|
|
|
if [ "$outputDev" != out ]; then
|
|
|
|
if [ -n "$crossConfig" ]; then
|
|
|
|
propagatedBuildInputs="$propagatedBuildInputs @dev@"
|
|
|
|
else
|
|
|
|
propagatedNativeBuildInputs="$propagatedNativeBuildInputs @dev@"
|
|
|
|
fi
|
2017-05-26 22:44:36 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
in callPackage setupHook {};
|
|
|
|
|
|
|
|
propagateBin = propagate "bin";
|
|
|
|
|
2017-02-25 21:32:46 +01:00
|
|
|
callPackage = self.newScope {
|
2017-05-26 23:22:27 +02:00
|
|
|
inherit propagate propagateBin;
|
|
|
|
|
2017-05-15 18:44:58 +02:00
|
|
|
mkDerivation = args:
|
|
|
|
let
|
|
|
|
inherit (args) name;
|
|
|
|
sname = args.sname or name;
|
|
|
|
inherit (srcs."${sname}") src version;
|
|
|
|
|
2017-05-26 22:44:36 +02:00
|
|
|
outputs = args.outputs or [ "out" ];
|
|
|
|
hasBin = lib.elem "bin" outputs;
|
|
|
|
hasDev = lib.elem "dev" outputs;
|
|
|
|
|
|
|
|
defaultSetupHook = if hasBin && hasDev then propagateBin else null;
|
|
|
|
setupHook = args.setupHook or defaultSetupHook;
|
2017-05-15 18:44:58 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = with lib.licenses; [
|
|
|
|
lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ ttuegel ];
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.kde.org;
|
2017-05-15 18:44:58 +02:00
|
|
|
} // (args.meta or {});
|
2017-05-26 22:44:36 +02:00
|
|
|
in
|
|
|
|
mkDerivation (args // {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
inherit meta outputs setupHook src;
|
2017-05-15 18:44:58 +02:00
|
|
|
});
|
2017-02-25 21:32:46 +01:00
|
|
|
};
|
2017-05-26 22:44:36 +02:00
|
|
|
|
2017-02-25 21:32:46 +01:00
|
|
|
in {
|
|
|
|
bluedevil = callPackage ./bluedevil.nix {};
|
|
|
|
breeze-gtk = callPackage ./breeze-gtk.nix {};
|
|
|
|
breeze-qt4 = callPackage ./breeze-qt4.nix {};
|
|
|
|
breeze-qt5 = callPackage ./breeze-qt5.nix {};
|
|
|
|
breeze-grub = callPackage ./breeze-grub.nix {};
|
|
|
|
breeze-plymouth = callPackage ./breeze-plymouth {};
|
|
|
|
kactivitymanagerd = callPackage ./kactivitymanagerd.nix {};
|
|
|
|
kde-cli-tools = callPackage ./kde-cli-tools.nix {};
|
|
|
|
kde-gtk-config = callPackage ./kde-gtk-config {};
|
|
|
|
kdecoration = callPackage ./kdecoration.nix {};
|
|
|
|
kdeplasma-addons = callPackage ./kdeplasma-addons.nix {};
|
|
|
|
kgamma5 = callPackage ./kgamma5.nix {};
|
|
|
|
khotkeys = callPackage ./khotkeys.nix {};
|
|
|
|
kinfocenter = callPackage ./kinfocenter.nix {};
|
|
|
|
kmenuedit = callPackage ./kmenuedit.nix {};
|
|
|
|
kscreen = callPackage ./kscreen.nix {};
|
|
|
|
kscreenlocker = callPackage ./kscreenlocker.nix {};
|
|
|
|
ksshaskpass = callPackage ./ksshaskpass.nix {};
|
|
|
|
ksysguard = callPackage ./ksysguard.nix {};
|
|
|
|
kwallet-pam = callPackage ./kwallet-pam.nix {};
|
|
|
|
kwayland-integration = callPackage ./kwayland-integration.nix {};
|
|
|
|
kwin = callPackage ./kwin {};
|
|
|
|
kwrited = callPackage ./kwrited.nix {};
|
2017-04-14 12:39:38 +02:00
|
|
|
libkscreen = callPackage ./libkscreen {};
|
2017-02-25 21:32:46 +01:00
|
|
|
libksysguard = callPackage ./libksysguard {};
|
|
|
|
milou = callPackage ./milou.nix {};
|
|
|
|
oxygen = callPackage ./oxygen.nix {};
|
|
|
|
plasma-desktop = callPackage ./plasma-desktop {};
|
|
|
|
plasma-integration = callPackage ./plasma-integration.nix {};
|
|
|
|
plasma-nm = callPackage ./plasma-nm {};
|
|
|
|
plasma-pa = callPackage ./plasma-pa.nix { inherit gconf; };
|
2017-10-11 07:37:54 +02:00
|
|
|
plasma-vault = callPackage ./plasma-vault {};
|
2017-02-25 21:32:46 +01:00
|
|
|
plasma-workspace = callPackage ./plasma-workspace {};
|
|
|
|
plasma-workspace-wallpapers = callPackage ./plasma-workspace-wallpapers.nix {};
|
|
|
|
polkit-kde-agent = callPackage ./polkit-kde-agent.nix {};
|
|
|
|
powerdevil = callPackage ./powerdevil.nix {};
|
2017-10-12 17:01:49 +02:00
|
|
|
sddm-kcm = callPackage ./sddm-kcm.nix {};
|
2017-02-25 21:32:46 +01:00
|
|
|
systemsettings = callPackage ./systemsettings.nix {};
|
2016-10-05 04:31:47 +02:00
|
|
|
};
|
2017-02-25 21:32:46 +01:00
|
|
|
in
|
|
|
|
lib.makeScope libsForQt5.newScope packages
|