uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
8
pkgs/development/libraries/kde-frameworks/attica.nix
Normal file
8
pkgs/development/libraries/kde-frameworks/attica.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ mkDerivation, extra-cmake-modules, qtbase }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "attica";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
17
pkgs/development/libraries/kde-frameworks/baloo.nix
Normal file
17
pkgs/development/libraries/kde-frameworks/baloo.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kauth, kconfig, kcoreaddons, kcrash, kdbusaddons, kfilemetadata, ki18n,
|
||||
kidletime, kio, lmdb, qtbase, qtdeclarative, solid,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "baloo";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kauth kconfig kcrash kdbusaddons ki18n kio kidletime lmdb qtdeclarative
|
||||
solid
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
propagatedBuildInputs = [ kcoreaddons kfilemetadata qtbase ];
|
||||
}
|
||||
15
pkgs/development/libraries/kde-frameworks/bluez-qt.nix
Normal file
15
pkgs/development/libraries/kde-frameworks/bluez-qt.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ mkDerivation
|
||||
, extra-cmake-modules
|
||||
, qtbase, qtdeclarative
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "bluez-qt";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qtdeclarative ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
preConfigure = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace /lib/udev/rules.d "$bin/lib/udev/rules.d"
|
||||
'';
|
||||
}
|
||||
16
pkgs/development/libraries/kde-frameworks/breeze-icons.nix
Normal file
16
pkgs/development/libraries/kde-frameworks/breeze-icons.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ mkDerivation, extra-cmake-modules, gtk3, qtsvg, hicolor-icon-theme }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "breeze-icons";
|
||||
nativeBuildInputs = [ extra-cmake-modules gtk3 ];
|
||||
buildInputs = [ qtsvg ];
|
||||
propagatedBuildInputs = [
|
||||
hicolor-icon-theme
|
||||
];
|
||||
dontDropIconThemeCache = true;
|
||||
outputs = [ "out" ]; # only runtime outputs
|
||||
postInstall = ''
|
||||
gtk-update-icon-cache "''${out:?}/share/icons/breeze"
|
||||
gtk-update-icon-cache "''${out:?}/share/icons/breeze-dark"
|
||||
'';
|
||||
}
|
||||
195
pkgs/development/libraries/kde-frameworks/default.nix
Normal file
195
pkgs/development/libraries/kde-frameworks/default.nix
Normal file
|
|
@ -0,0 +1,195 @@
|
|||
/*
|
||||
|
||||
# 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.
|
||||
|
||||
# Updates
|
||||
|
||||
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.
|
||||
3. Use `nox-review wip` to check that everything builds.
|
||||
4. Commit the changes and open a pull request.
|
||||
|
||||
*/
|
||||
|
||||
{ libsForQt5, lib, fetchurl }:
|
||||
|
||||
let
|
||||
|
||||
minQtVersion = "5.15";
|
||||
broken = lib.versionOlder libsForQt5.qtbase.version minQtVersion;
|
||||
maintainers = with lib.maintainers; [ ttuegel nyanloutre ];
|
||||
license = with lib.licenses; [
|
||||
lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
|
||||
];
|
||||
|
||||
srcs = import ./srcs.nix {
|
||||
inherit fetchurl;
|
||||
mirror = "mirror://kde";
|
||||
};
|
||||
|
||||
mkDerivation = libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
|
||||
|
||||
packages = self: with self;
|
||||
# SUPPORT
|
||||
let
|
||||
|
||||
propagate = out:
|
||||
let setupHook = { writeScript }:
|
||||
writeScript "setup-hook" ''
|
||||
if [ "''${hookName:-}" != postHook ]; then
|
||||
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
|
||||
if [ "''${outputDev:?}" != out ]; then
|
||||
propagatedBuildInputs="''${propagatedBuildInputs-} @dev@"
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
in callPackage setupHook {};
|
||||
|
||||
propagateBin = propagate "bin";
|
||||
|
||||
callPackage = self.newScope {
|
||||
|
||||
inherit propagate propagateBin;
|
||||
|
||||
mkDerivation = args:
|
||||
let
|
||||
|
||||
inherit (args) pname;
|
||||
inherit (srcs.${pname}) src version;
|
||||
|
||||
outputs = args.outputs or [ "bin" "dev" "out" ];
|
||||
hasSeparateDev = lib.elem "dev" outputs;
|
||||
|
||||
defaultSetupHook = if hasSeparateDev then propagateBin else null;
|
||||
setupHook = args.setupHook or defaultSetupHook;
|
||||
|
||||
meta =
|
||||
let meta = args.meta or {}; in
|
||||
meta // {
|
||||
homepage = meta.homepage or "https://kde.org";
|
||||
license = meta.license or license;
|
||||
maintainers = (meta.maintainers or []) ++ maintainers;
|
||||
platforms = meta.platforms or lib.platforms.linux;
|
||||
broken = meta.broken or broken;
|
||||
};
|
||||
|
||||
in mkDerivation (args // {
|
||||
inherit pname meta outputs setupHook src version;
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
in {
|
||||
extra-cmake-modules = callPackage ./extra-cmake-modules {};
|
||||
|
||||
# TIER 1
|
||||
attica = callPackage ./attica.nix {};
|
||||
bluez-qt = callPackage ./bluez-qt.nix {};
|
||||
breeze-icons = callPackage ./breeze-icons.nix {};
|
||||
kapidox = callPackage ./kapidox.nix {};
|
||||
karchive = callPackage ./karchive.nix {};
|
||||
kcalendarcore = callPackage ./kcalendarcore.nix {};
|
||||
kcodecs = callPackage ./kcodecs.nix {};
|
||||
kconfig = callPackage ./kconfig.nix {};
|
||||
kcontacts = callPackage ./kcontacts.nix {};
|
||||
kcoreaddons = callPackage ./kcoreaddons.nix {};
|
||||
kdbusaddons = callPackage ./kdbusaddons.nix {};
|
||||
kdnssd = callPackage ./kdnssd.nix {};
|
||||
kguiaddons = callPackage ./kguiaddons.nix {};
|
||||
kholidays = callPackage ./kholidays.nix {};
|
||||
ki18n = callPackage ./ki18n.nix {};
|
||||
kidletime = callPackage ./kidletime.nix {};
|
||||
kirigami2 = callPackage ./kirigami2.nix {};
|
||||
kitemmodels = callPackage ./kitemmodels.nix {};
|
||||
kitemviews = callPackage ./kitemviews.nix {};
|
||||
kplotting = callPackage ./kplotting.nix {};
|
||||
kquickcharts = callPackage ./kquickcharts.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 {};
|
||||
qqc2-desktop-style = callPackage ./qqc2-desktop-style.nix {};
|
||||
solid = callPackage ./solid.nix {};
|
||||
sonnet = callPackage ./sonnet.nix {};
|
||||
syntax-highlighting = callPackage ./syntax-highlighting.nix {};
|
||||
threadweaver = callPackage ./threadweaver.nix {};
|
||||
|
||||
# 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 {};
|
||||
syndication = callPackage ./syndication.nix {};
|
||||
|
||||
# TIER 3
|
||||
baloo = callPackage ./baloo.nix {};
|
||||
kbookmarks = callPackage ./kbookmarks.nix {};
|
||||
kcmutils = callPackage ./kcmutils {};
|
||||
kconfigwidgets = callPackage ./kconfigwidgets {};
|
||||
kdav = callPackage ./kdav.nix {};
|
||||
kdeclarative = callPackage ./kdeclarative.nix {};
|
||||
kded = callPackage ./kded.nix {};
|
||||
kdesignerplugin = callPackage ./kdesignerplugin.nix {};
|
||||
kdesu = callPackage ./kdesu {};
|
||||
kdewebkit = callPackage ./kdewebkit.nix {};
|
||||
kemoticons = callPackage ./kemoticons.nix {};
|
||||
kglobalaccel = callPackage ./kglobalaccel.nix {};
|
||||
kiconthemes = callPackage ./kiconthemes {};
|
||||
kinit = callPackage ./kinit {};
|
||||
kio = callPackage ./kio {};
|
||||
knewstuff = callPackage ./knewstuff {};
|
||||
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 {};
|
||||
kpurpose = callPackage ./purpose.nix {};
|
||||
|
||||
# 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 {};
|
||||
|
||||
};
|
||||
|
||||
in lib.makeScope libsForQt5.newScope packages
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{ mkDerivation, lib, cmake, pkg-config }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "extra-cmake-modules";
|
||||
|
||||
patches = [
|
||||
./nix-lib-path.patch
|
||||
];
|
||||
|
||||
outputs = [ "out" ]; # this package has no runtime components
|
||||
|
||||
propagatedBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = with lib; {
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
homepage = "http://www.kde.org";
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
diff --git a/kde-modules/KDEInstallDirsCommon.cmake b/kde-modules/KDEInstallDirsCommon.cmake
|
||||
index c1d056b..d9e19f0 100644
|
||||
--- a/kde-modules/KDEInstallDirsCommon.cmake
|
||||
+++ b/kde-modules/KDEInstallDirsCommon.cmake
|
||||
@@ -15,35 +15,6 @@
|
||||
# GNUInstallDirs code deals with re-configuring, but that is dealt with
|
||||
# by the _define_* macros in this module).
|
||||
set(_LIBDIR_DEFAULT "lib")
|
||||
-# Override this default 'lib' with 'lib64' if:
|
||||
-# - we are on a Linux, kFreeBSD or Hurd system but NOT cross-compiling
|
||||
-# - we are NOT on debian
|
||||
-# - we are NOT on flatpak
|
||||
-# - we are on a 64 bits system
|
||||
-# reason is: amd64 ABI: http://www.x86-64.org/documentation/abi.pdf
|
||||
-# For Debian with multiarch, use 'lib/${CMAKE_LIBRARY_ARCHITECTURE}' if
|
||||
-# CMAKE_LIBRARY_ARCHITECTURE is set (which contains e.g. "i386-linux-gnu"
|
||||
-# See https://wiki.debian.org/Multiarch
|
||||
-if((CMAKE_SYSTEM_NAME MATCHES "Linux|kFreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "GNU")
|
||||
- AND NOT CMAKE_CROSSCOMPILING
|
||||
- AND NOT EXISTS "/etc/arch-release"
|
||||
- AND NOT DEFINED ENV{FLATPAK_ID})
|
||||
- if (EXISTS "/etc/debian_version") # is this a debian system ?
|
||||
- if(CMAKE_LIBRARY_ARCHITECTURE)
|
||||
- set(_LIBDIR_DEFAULT "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
|
||||
- endif()
|
||||
- else() # not debian, rely on CMAKE_SIZEOF_VOID_P:
|
||||
- if(NOT DEFINED CMAKE_SIZEOF_VOID_P)
|
||||
- message(AUTHOR_WARNING
|
||||
- "Unable to determine default LIB_INSTALL_LIBDIR directory because no target architecture is known. "
|
||||
- "Please enable at least one language before including KDEInstallDirs.")
|
||||
- else()
|
||||
- if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
|
||||
- set(_LIBDIR_DEFAULT "lib64")
|
||||
- endif()
|
||||
- endif()
|
||||
- endif()
|
||||
-endif()
|
||||
|
||||
set(_gnu_install_dirs_vars
|
||||
BINDIR
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
ecmEnvHook() {
|
||||
addToSearchPath XDG_DATA_DIRS "$1/share"
|
||||
addToSearchPath XDG_CONFIG_DIRS "$1/etc/xdg"
|
||||
}
|
||||
addEnvHooks "$targetOffset" ecmEnvHook
|
||||
|
||||
ecmPostHook() {
|
||||
# Because we need to use absolute paths here, we must set *all* the paths.
|
||||
cmakeFlags+=" -DKDE_INSTALL_EXECROOTDIR=${!outputBin}"
|
||||
cmakeFlags+=" -DKDE_INSTALL_BINDIR=${!outputBin}/bin"
|
||||
cmakeFlags+=" -DKDE_INSTALL_SBINDIR=${!outputBin}/sbin"
|
||||
cmakeFlags+=" -DKDE_INSTALL_LIBDIR=${!outputLib}/lib"
|
||||
cmakeFlags+=" -DKDE_INSTALL_LIBEXECDIR=${!outputLib}/libexec"
|
||||
cmakeFlags+=" -DKDE_INSTALL_CMAKEPACKAGEDIR=${!outputDev}/lib/cmake"
|
||||
cmakeFlags+=" -DKDE_INSTALL_INCLUDEDIR=${!outputInclude}/include"
|
||||
cmakeFlags+=" -DKDE_INSTALL_LOCALSTATEDIR=/var"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DATAROOTDIR=${!outputBin}/share"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DATADIR=${!outputBin}/share"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DOCBUNDLEDIR=${!outputBin}/share/doc/HTML"
|
||||
cmakeFlags+=" -DKDE_INSTALL_KCFGDIR=${!outputBin}/share/config.kcfg"
|
||||
cmakeFlags+=" -DKDE_INSTALL_KCONFUPDATEDIR=${!outputBin}/share/kconf_update"
|
||||
cmakeFlags+=" -DKDE_INSTALL_KSERVICES5DIR=${!outputBin}/share/kservices5"
|
||||
cmakeFlags+=" -DKDE_INSTALL_KSERVICETYPES5DIR=${!outputBin}/share/kservicetypes5"
|
||||
cmakeFlags+=" -DKDE_INSTALL_KXMLGUI5DIR=${!outputBin}/share/kxmlgui5"
|
||||
cmakeFlags+=" -DKDE_INSTALL_KNOTIFY5RCDIR=${!outputBin}/share/knotifications5"
|
||||
cmakeFlags+=" -DKDE_INSTALL_ICONDIR=${!outputBin}/share/icons"
|
||||
cmakeFlags+=" -DKDE_INSTALL_LOCALEDIR=${!outputLib}/share/locale"
|
||||
cmakeFlags+=" -DKDE_INSTALL_SOUNDDIR=${!outputBin}/share/sounds"
|
||||
cmakeFlags+=" -DKDE_INSTALL_TEMPLATEDIR=${!outputBin}/share/templates"
|
||||
cmakeFlags+=" -DKDE_INSTALL_WALLPAPERDIR=${!outputBin}/share/wallpapers"
|
||||
cmakeFlags+=" -DKDE_INSTALL_APPDIR=${!outputBin}/share/applications"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DESKTOPDIR=${!outputBin}/share/desktop-directories"
|
||||
cmakeFlags+=" -DKDE_INSTALL_MIMEDIR=${!outputBin}/share/mime/packages"
|
||||
cmakeFlags+=" -DKDE_INSTALL_METAINFODIR=${!outputBin}/share/appdata"
|
||||
cmakeFlags+=" -DKDE_INSTALL_MANDIR=${!outputBin}/share/man"
|
||||
cmakeFlags+=" -DKDE_INSTALL_INFODIR=${!outputBin}/share/info"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DBUSDIR=${!outputBin}/share/dbus-1"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DBUSINTERFACEDIR=${!outputBin}/share/dbus-1/interfaces"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DBUSSERVICEDIR=${!outputBin}/share/dbus-1/services"
|
||||
cmakeFlags+=" -DKDE_INSTALL_DBUSSYSTEMSERVICEDIR=${!outputBin}/share/dbus-1/system-services"
|
||||
cmakeFlags+=" -DKDE_INSTALL_SYSCONFDIR=${!outputBin}/etc"
|
||||
cmakeFlags+=" -DKDE_INSTALL_CONFDIR=${!outputBin}/etc/xdg"
|
||||
cmakeFlags+=" -DKDE_INSTALL_AUTOSTARTDIR=${!outputBin}/etc/xdg/autostart"
|
||||
|
||||
if [ -n "${qtPluginPrefix-}" ]; then
|
||||
cmakeFlags+=" -DKDE_INSTALL_QTPLUGINDIR=${!outputBin}/$qtPluginPrefix"
|
||||
cmakeFlags+=" -DKDE_INSTALL_PLUGINDIR=${!outputBin}/$qtPluginPrefix"
|
||||
fi
|
||||
|
||||
if [ -n "${qtQmlPrefix-}" ]; then
|
||||
cmakeFlags+=" -DKDE_INSTALL_QMLDIR=${!outputBin}/$qtQmlPrefix"
|
||||
fi
|
||||
}
|
||||
postHooks+=(ecmPostHook)
|
||||
|
||||
xdgDataSubdirs=( \
|
||||
"config.kcfg" "kconf_update" "kservices5" "kservicetypes5" \
|
||||
"kxmlgui5" "knotifications5" "icons" "locale" "sounds" "templates" \
|
||||
"wallpapers" "applications" "desktop-directories" "mime" "appdata" "dbus-1" \
|
||||
)
|
||||
|
||||
# ecmHostPathsSeen is an associative array of the paths that have already been
|
||||
# seen by ecmHostPathHook.
|
||||
declare -gA ecmHostPathsSeen
|
||||
|
||||
ecmHostPathIsNotSeen() {
|
||||
if [[ -n "${ecmHostPathsSeen["$1"]:-}" ]]; then
|
||||
# The path has been seen before.
|
||||
return 1
|
||||
else
|
||||
# The path has not been seen before.
|
||||
# Now it is seen, so record it.
|
||||
ecmHostPathsSeen["$1"]=1
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
ecmHostPathHook() {
|
||||
ecmHostPathIsNotSeen "$1" || return 0
|
||||
|
||||
local xdgConfigDir="$1/etc/xdg"
|
||||
if [ -d "$xdgConfigDir" ]
|
||||
then
|
||||
qtWrapperArgs+=(--prefix XDG_CONFIG_DIRS : "$xdgConfigDir")
|
||||
fi
|
||||
|
||||
for xdgDataSubdir in "${xdgDataSubdirs[@]}"
|
||||
do
|
||||
if [ -d "$1/share/$xdgDataSubdir" ]
|
||||
then
|
||||
qtWrapperArgs+=(--prefix XDG_DATA_DIRS : "$1/share")
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
local manDir="$1/man"
|
||||
if [ -d "$manDir" ]
|
||||
then
|
||||
qtWrapperArgs+=(--prefix MANPATH : "$manDir")
|
||||
fi
|
||||
|
||||
local infoDir="$1/info"
|
||||
if [ -d "$infoDir" ]
|
||||
then
|
||||
qtWrapperArgs+=(--prefix INFOPATH : "$infoDir")
|
||||
fi
|
||||
|
||||
if [ -d "$1/dbus-1" ]
|
||||
then
|
||||
propagatedUserEnvPkgs+=" $1"
|
||||
fi
|
||||
}
|
||||
addEnvHooks "$targetOffset" ecmHostPathHook
|
||||
1
pkgs/development/libraries/kde-frameworks/fetch.sh
Normal file
1
pkgs/development/libraries/kde-frameworks/fetch.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
WGET_ARGS=( https://download.kde.org/stable/frameworks/5.94/ -A '*.tar.xz' )
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kbookmarks, kcompletion, kconfig, kconfigwidgets, ki18n, kiconthemes, kio,
|
||||
knewstuff, knotifications, kpackage, kwidgetsaddons, libXcursor, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "frameworkintegration";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kbookmarks kcompletion kconfig ki18n kio knewstuff knotifications kpackage
|
||||
kwidgetsaddons libXcursor qtx11extras
|
||||
];
|
||||
propagatedBuildInputs = [ kconfigwidgets kiconthemes ];
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
boost, kactivities, kconfig, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kactivities-stats";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ boost kactivities kconfig ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
14
pkgs/development/libraries/kde-frameworks/kactivities.nix
Normal file
14
pkgs/development/libraries/kde-frameworks/kactivities.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
boost, kconfig, kcoreaddons, kio, kwindowsystem, qtbase, qtdeclarative,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kactivities";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
boost kconfig kcoreaddons kio kwindowsystem qtdeclarative
|
||||
];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
26
pkgs/development/libraries/kde-frameworks/kapidox.nix
Normal file
26
pkgs/development/libraries/kde-frameworks/kapidox.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ mkDerivation, python3, qtbase }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kapidox";
|
||||
nativeBuildInputs = [ python3.pkgs.setuptools qtbase ];
|
||||
|
||||
buildInputs = with python3.pkgs; [ jinja2 pyyaml requests ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e 's|"doxy\w\+", ||g' setup.py
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
${python3.interpreter} setup.py build
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
${python3.interpreter} setup.py install --prefix="$out"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
outputs = [ "out" ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/karchive.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/karchive.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
bzip2, xz, qtbase, zlib, zstd
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "karchive";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ bzip2 xz zlib zstd ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
Index: kauth-5.18.0/KF5AuthConfig.cmake.in
|
||||
===================================================================
|
||||
--- kauth-5.18.0.orig/KF5AuthConfig.cmake.in
|
||||
+++ kauth-5.18.0/KF5AuthConfig.cmake.in
|
||||
@@ -4,9 +4,9 @@ set(KAUTH_STUB_FILES_DIR "@PACKAGE_KDE_I
|
||||
|
||||
set(KAUTH_BACKEND_NAME "@KAUTH_BACKEND_NAME@")
|
||||
set(KAUTH_HELPER_BACKEND_NAME "@KAUTH_HELPER_BACKEND_NAME@")
|
||||
-set(KAUTH_POLICY_FILES_INSTALL_DIR "@KAUTH_POLICY_FILES_INSTALL_DIR@")
|
||||
-set(KAUTH_HELPER_INSTALL_DIR "@KAUTH_HELPER_INSTALL_DIR@")
|
||||
-set(KAUTH_HELPER_INSTALL_ABSOLUTE_DIR "@KAUTH_HELPER_INSTALL_ABSOLUTE_DIR@")
|
||||
+set(KAUTH_POLICY_FILES_INSTALL_DIR "${KDE_INSTALL_DATADIR}/polkit-1/actions")
|
||||
+set(KAUTH_HELPER_INSTALL_DIR "${KDE_INSTALL_LIBEXECDIR}")
|
||||
+set(KAUTH_HELPER_INSTALL_ABSOLUTE_DIR "${KDE_INSTALL_LIBEXECDIR}")
|
||||
|
||||
find_dependency(KF5CoreAddons "@KF5_DEP_VERSION@")
|
||||
|
||||
19
pkgs/development/libraries/kde-frameworks/kauth/default.nix
Normal file
19
pkgs/development/libraries/kde-frameworks/kauth/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
lib, mkDerivation, propagate,
|
||||
extra-cmake-modules, kcoreaddons, qttools,
|
||||
enablePolkit ? true, polkit-qt
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kauth";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = lib.optional enablePolkit polkit-qt ++ [ qttools ];
|
||||
propagatedBuildInputs = [ kcoreaddons ];
|
||||
patches = [
|
||||
./cmake-install-paths.patch
|
||||
];
|
||||
# library stores reference to plugin path,
|
||||
# separating $out from $bin would create a reference cycle
|
||||
outputs = [ "out" "dev" ];
|
||||
setupHook = propagate "out";
|
||||
}
|
||||
16
pkgs/development/libraries/kde-frameworks/kbookmarks.nix
Normal file
16
pkgs/development/libraries/kde-frameworks/kbookmarks.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, qttools,
|
||||
kcodecs, kconfig, kconfigwidgets, kcoreaddons, kiconthemes, kwidgetsaddons,
|
||||
kxmlgui, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kbookmarks";
|
||||
nativeBuildInputs = [ extra-cmake-modules qttools ];
|
||||
buildInputs = [
|
||||
kcodecs kconfig kconfigwidgets kcoreaddons kiconthemes kxmlgui
|
||||
];
|
||||
propagatedBuildInputs = [ kwidgetsaddons qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kcalendarcore.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kcalendarcore.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
libical,
|
||||
qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kcalendarcore";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [ libical ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From 4d5dcc309fba688aa1db8dd915a0abdf07f61e81 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Mon, 13 Jul 2020 11:23:36 -0500
|
||||
Subject: [PATCH] kcmutils follow symlinks
|
||||
|
||||
---
|
||||
src/kpluginselector.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/kpluginselector.cpp b/src/kpluginselector.cpp
|
||||
index 46deef5..2eacb9f 100644
|
||||
--- a/src/kpluginselector.cpp
|
||||
+++ b/src/kpluginselector.cpp
|
||||
@@ -309,7 +309,7 @@ void KPluginSelector::addPlugins(const QString &componentName,
|
||||
QStringList desktopFileNames;
|
||||
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, componentName + QStringLiteral("/kpartplugins"), QStandardPaths::LocateDirectory);
|
||||
for (const QString &dir : dirs) {
|
||||
- QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
|
||||
+ QDirIterator it(dir, QStringList() << QStringLiteral("*.desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
||||
while (it.hasNext()) {
|
||||
desktopFileNames.append(it.next());
|
||||
}
|
||||
--
|
||||
2.25.4
|
||||
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kconfigwidgets, kcoreaddons, kdeclarative, ki18n, kiconthemes, kitemviews,
|
||||
kpackage, kservice, kxmlgui, qtdeclarative,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kcmutils";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kcoreaddons kdeclarative ki18n kiconthemes kitemviews kpackage kxmlgui
|
||||
qtdeclarative
|
||||
];
|
||||
propagatedBuildInputs = [ kconfigwidgets kservice ];
|
||||
patches = [
|
||||
./0001-kcmutils-follow-symlinks.patch
|
||||
];
|
||||
}
|
||||
9
pkgs/development/libraries/kde-frameworks/kcodecs.nix
Normal file
9
pkgs/development/libraries/kde-frameworks/kcodecs.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ mkDerivation, extra-cmake-modules, qtbase, qttools, gperf }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kcodecs";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qttools gperf ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kcompletion.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kcompletion.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kconfig, kwidgetsaddons, qtbase, qttools
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kcompletion";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kconfig kwidgetsaddons qttools ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
8
pkgs/development/libraries/kde-frameworks/kconfig.nix
Normal file
8
pkgs/development/libraries/kde-frameworks/kconfig.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ mkDerivation, extra-cmake-modules, qtbase, qttools }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kconfig";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qttools ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From 05c0eb5d803ac52c0dd97a98f6d2821650c3c14c Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Sun, 28 Mar 2021 06:09:47 -0500
|
||||
Subject: [PATCH] QDirIterator follow symlinks
|
||||
|
||||
---
|
||||
src/khelpclient.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/khelpclient.cpp b/src/khelpclient.cpp
|
||||
index a053cd7..787d375 100644
|
||||
--- a/src/khelpclient.cpp
|
||||
+++ b/src/khelpclient.cpp
|
||||
@@ -34,7 +34,7 @@ void KHelpClient::invokeHelp(const QString &anchor, const QString &_appname)
|
||||
QString docPath;
|
||||
const QStringList desktopDirs = QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation);
|
||||
for (const QString &dir : desktopDirs) {
|
||||
- QDirIterator it(dir, QStringList() << appname + QLatin1String(".desktop"), QDir::NoFilter, QDirIterator::Subdirectories);
|
||||
+ QDirIterator it(dir, QStringList() << appname + QLatin1String(".desktop"), QDir::NoFilter, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
||||
while (it.hasNext()) {
|
||||
const QString desktopPath(it.next());
|
||||
KDesktopFile desktopFile(desktopPath);
|
||||
--
|
||||
2.30.1
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation, extra-cmake-modules,
|
||||
kauth, kcodecs, kconfig, kdoctools, kguiaddons, ki18n, kwidgetsaddons, qttools, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kconfigwidgets";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ kguiaddons ki18n qtbase qttools ];
|
||||
propagatedBuildInputs = [ kauth kcodecs kconfig kwidgetsaddons ];
|
||||
patches = [ ./0001-QDirIterator-follow-symlinks.patch ];
|
||||
outputs = [ "out" "dev" ];
|
||||
outputBin = "dev";
|
||||
postInstall = ''
|
||||
moveToOutput ''${qtPluginPrefix:?}/designer/kconfigwidgets5widgets.so "$out"
|
||||
'';
|
||||
}
|
||||
18
pkgs/development/libraries/kde-frameworks/kcontacts.nix
Normal file
18
pkgs/development/libraries/kde-frameworks/kcontacts.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, isocodes,
|
||||
kcoreaddons, kconfig, kcodecs, ki18n, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kcontacts";
|
||||
meta = {
|
||||
license = [ lib.licenses.lgpl21 ];
|
||||
};
|
||||
propagatedBuildInputs = [
|
||||
isocodes
|
||||
];
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kcoreaddons kconfig kcodecs ki18n qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
12
pkgs/development/libraries/kde-frameworks/kcoreaddons.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/kcoreaddons.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
qtbase, qttools, shared-mime-info
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kcoreaddons";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qttools shared-mime-info ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kcrash.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kcrash.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kcoreaddons, kwindowsystem, qtbase, qtx11extras,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kcrash";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kcoreaddons kwindowsystem qtx11extras ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
15
pkgs/development/libraries/kde-frameworks/kdav.nix
Normal file
15
pkgs/development/libraries/kde-frameworks/kdav.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kcoreaddons, kio, qtxmlpatterns,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdav";
|
||||
meta = {
|
||||
license = with lib.licenses; [ gpl2 lgpl21 fdl12 ];
|
||||
};
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ kcoreaddons kio qtxmlpatterns ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
12
pkgs/development/libraries/kde-frameworks/kdbusaddons.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/kdbusaddons.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
qtbase, qttools, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdbusaddons";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qttools qtx11extras ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
15
pkgs/development/libraries/kde-frameworks/kdeclarative.nix
Normal file
15
pkgs/development/libraries/kde-frameworks/kdeclarative.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation, extra-cmake-modules,
|
||||
libepoxy, kconfig, kglobalaccel, kguiaddons, ki18n, kiconthemes, kio, kpackage,
|
||||
kwidgetsaddons, kwindowsystem, qtdeclarative
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdeclarative";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
libepoxy kglobalaccel kguiaddons ki18n kiconthemes kio kwidgetsaddons
|
||||
kwindowsystem
|
||||
];
|
||||
propagatedBuildInputs = [ kconfig kpackage qtdeclarative ];
|
||||
}
|
||||
21
pkgs/development/libraries/kde-frameworks/kded.nix
Normal file
21
pkgs/development/libraries/kde-frameworks/kded.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
mkDerivation, propagate, wrapGAppsHook,
|
||||
extra-cmake-modules, kdoctools,
|
||||
gsettings-desktop-schemas, kconfig, kcoreaddons, kcrash, kdbusaddons,
|
||||
kservice, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kded";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
||||
buildInputs = [
|
||||
gsettings-desktop-schemas kconfig kcoreaddons kcrash kdbusaddons
|
||||
kservice qtbase
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
setupHook = propagate "out";
|
||||
dontWrapGApps = true;
|
||||
preFixup = ''
|
||||
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
mkDerivation,
|
||||
docbook_xml_dtd_45, extra-cmake-modules, kdoctools,
|
||||
kauth, karchive, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash,
|
||||
kdbusaddons, kded, kdesignerplugin, kemoticons, kglobalaccel, kguiaddons,
|
||||
ki18n, kiconthemes, kio, kitemmodels, kinit, knotifications, kparts, kservice,
|
||||
ktextwidgets, kunitconversion, kwidgetsaddons, kwindowsystem, kxmlgui,
|
||||
networkmanager, qtbase, qtsvg, qttools, qtx11extras, xorg
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdelibs4support";
|
||||
patches = [
|
||||
./nix-kde-include-dir.patch
|
||||
];
|
||||
setupHook = ./setup-hook.sh;
|
||||
nativeBuildInputs = [ extra-cmake-modules qttools ];
|
||||
propagatedNativeBuildInputs = [ kdoctools ];
|
||||
buildInputs = [
|
||||
kcompletion kconfig kded kglobalaccel ki18n kio kservice kwidgetsaddons
|
||||
kxmlgui networkmanager qtsvg qtx11extras xorg.libSM
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
kauth karchive kconfigwidgets kcoreaddons kcrash kdbusaddons kdesignerplugin
|
||||
kemoticons kguiaddons kiconthemes kitemmodels kinit knotifications kparts
|
||||
ktextwidgets kunitconversion kwindowsystem qtbase
|
||||
];
|
||||
cmakeFlags = [
|
||||
"-DDocBookXML4_DTD_DIR=${docbook_xml_dtd_45}/xml/dtd/docbook"
|
||||
"-DDocBookXML4_DTD_VERSION=4.5"
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
Index: kdelibs4support-5.18.0/src/kdecore/kstandarddirs.cpp
|
||||
===================================================================
|
||||
--- kdelibs4support-5.18.0.orig/src/kdecore/kstandarddirs.cpp
|
||||
+++ kdelibs4support-5.18.0/src/kdecore/kstandarddirs.cpp
|
||||
@@ -292,7 +292,7 @@ static QString relativeInstallPath(const
|
||||
return QFile::decodeName(ICON_INSTALL_DIR "/");
|
||||
}
|
||||
if (strcmp("include", type) == 0) {
|
||||
- return QFile::decodeName(INCLUDE_INSTALL_DIR "/");
|
||||
+ return QFile::decodeName(qgetenv("NIX_KDE_INCLUDE_DIR"));
|
||||
}
|
||||
break;
|
||||
case 'l':
|
||||
|
|
@ -0,0 +1 @@
|
|||
export NIX_KDE_INCLUDE_DIR="@dev@/include/" # trailing slash is required!
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kcompletion, kconfig, kconfigwidgets, kcoreaddons, kiconthemes, kio,
|
||||
kitemviews, kplotting, ktextwidgets, kwidgetsaddons, kxmlgui, qttools, sonnet,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdesignerplugin";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kcompletion kconfig kconfigwidgets kcoreaddons kiconthemes kio kitemviews
|
||||
kplotting ktextwidgets kwidgetsaddons kxmlgui sonnet
|
||||
];
|
||||
propagatedBuildInputs = [ qttools ];
|
||||
}
|
||||
14
pkgs/development/libraries/kde-frameworks/kdesu/default.nix
Normal file
14
pkgs/development/libraries/kde-frameworks/kdesu/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kcoreaddons, ki18n, kpty, kservice, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdesu";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kcoreaddons ki18n kpty kservice qtbase ];
|
||||
propagatedBuildInputs = [ kpty ];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [ ./kdesu-search-for-wrapped-daemon-first.patch ];
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
From 01af4d2a098e5819c09bca37568941dcd4b89d0b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= <malaquias@gmail.com>
|
||||
Date: Thu, 16 Jul 2020 13:21:42 -0300
|
||||
Subject: [PATCH] Search for the daemon first in /run/wrappers/bin
|
||||
|
||||
If looking first in libexec, the eventually wrapped one in
|
||||
/run/wrappers/bin can not be found.
|
||||
---
|
||||
src/client.cpp | 13 ++++++++-----
|
||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/client.cpp b/src/client.cpp
|
||||
index 44fbacd..6b5abf5 100644
|
||||
--- a/src/client.cpp
|
||||
+++ b/src/client.cpp
|
||||
@@ -384,11 +384,14 @@ int KDEsuClient::stopServer()
|
||||
|
||||
static QString findDaemon()
|
||||
{
|
||||
- QString daemon = QFile::decodeName(KDE_INSTALL_FULL_LIBEXECDIR_KF "/kdesud");
|
||||
- if (!QFile::exists(daemon)) { // if not in libexec, find it in PATH
|
||||
- daemon = QStandardPaths::findExecutable(QStringLiteral("kdesud"));
|
||||
- if (daemon.isEmpty()) {
|
||||
- qCWarning(KSU_LOG) << "kdesud daemon not found.";
|
||||
+ QString daemon = QFile::decodeName("/run/wrappers/bin/kdesud");
|
||||
+ if (!QFile::exists(daemon)) { // if not in wrappers
|
||||
+ daemon = QFile::decodeName(KDE_INSTALL_FULL_LIBEXECDIR_KF "/kdesud");
|
||||
+ if (!QFile::exists(daemon)) { // if not in libexec, find it in PATH
|
||||
+ daemon = QStandardPaths::findExecutable(QStringLiteral("kdesud"));
|
||||
+ if (daemon.isEmpty()) {
|
||||
+ qCWarning(KSU_LOG) << "kdesud daemon not found.";
|
||||
+ }
|
||||
}
|
||||
}
|
||||
return daemon;
|
||||
--
|
||||
2.27.0
|
||||
|
||||
14
pkgs/development/libraries/kde-frameworks/kdewebkit.nix
Normal file
14
pkgs/development/libraries/kde-frameworks/kdewebkit.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ mkDerivation, extra-cmake-modules
|
||||
, kconfig, kcoreaddons, kio, kparts, qtwebkit
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdewebkit";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kconfig kcoreaddons kio kparts ];
|
||||
propagatedBuildInputs = [ qtwebkit ];
|
||||
outputs = [ "out" "dev" ];
|
||||
cmakeFlags = [
|
||||
"-DBUILD_DESIGNERPLUGIN=OFF"
|
||||
];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kdnssd.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kdnssd.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
avahi, qtbase, qttools,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdnssd";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ avahi qttools ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, docbook_xml_dtd_45, docbook_xsl_ns,
|
||||
karchive, ki18n, qtbase,
|
||||
perl, perlPackages
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdoctools";
|
||||
nativeBuildInputs = [
|
||||
extra-cmake-modules
|
||||
# The build system insists on having native Perl.
|
||||
perl perlPackages.URI
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
# kdoctools at runtime actually needs Perl for the platform kdoctools is
|
||||
# running on, not necessarily native perl.
|
||||
perl perlPackages.URI
|
||||
qtbase
|
||||
];
|
||||
buildInputs = [ karchive ki18n ];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [ ./kdoctools-no-find-docbook-xml.patch ];
|
||||
cmakeFlags = [
|
||||
"-DDocBookXML4_DTD_DIR=${docbook_xml_dtd_45}/xml/dtd/docbook"
|
||||
"-DDocBookXSL_DIR=${docbook_xsl_ns}/xml/xsl/docbook"
|
||||
];
|
||||
postFixup = ''
|
||||
moveToOutput "share/doc" "$dev"
|
||||
moveToOutput "share/man" "$dev"
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 5c4863c..f731775 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -46,7 +46,6 @@ set_package_properties(LibXml2 PROPERTIES
|
||||
)
|
||||
|
||||
|
||||
-find_package(DocBookXML4 "4.5")
|
||||
|
||||
set_package_properties(DocBookXML4 PROPERTIES
|
||||
TYPE REQUIRED
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
addXdgData() {
|
||||
addToSearchPath XDG_DATA_DIRS "$1/share"
|
||||
}
|
||||
|
||||
addEnvHooks "$targetOffset" addXdgData
|
||||
12
pkgs/development/libraries/kde-frameworks/kemoticons.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/kemoticons.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
karchive, kcoreaddons, kservice, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kemoticons";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ karchive kcoreaddons ];
|
||||
propagatedBuildInputs = [ kservice qtbase ];
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
Index: kfilemetadata-5.18.0/src/CMakeLists.txt
|
||||
===================================================================
|
||||
--- kfilemetadata-5.18.0.orig/src/CMakeLists.txt
|
||||
+++ kfilemetadata-5.18.0/src/CMakeLists.txt
|
||||
@@ -49,7 +49,7 @@ install(TARGETS KF5FileMetaData EXPORT K
|
||||
|
||||
install(EXPORT KF5FileMetaDataTargets
|
||||
NAMESPACE KF5::
|
||||
- DESTINATION ${KDE_INSTALL_LIBDIR}/cmake/KF5FileMetaData
|
||||
+ DESTINATION ${KDE_INSTALL_FULL_CMAKEPACKAGEDIR}/KF5FileMetaData
|
||||
FILE KF5FileMetaDataTargets.cmake)
|
||||
|
||||
install(FILES
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, extra-cmake-modules
|
||||
, attr
|
||||
, ebook_tools
|
||||
, exiv2
|
||||
, ffmpeg
|
||||
, karchive
|
||||
, kcoreaddons
|
||||
, ki18n
|
||||
, poppler
|
||||
, qtbase
|
||||
, qtmultimedia
|
||||
, taglib
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kfilemetadata";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
attr
|
||||
ebook_tools
|
||||
exiv2
|
||||
ffmpeg
|
||||
karchive
|
||||
kcoreaddons
|
||||
ki18n
|
||||
poppler
|
||||
qtbase
|
||||
qtmultimedia
|
||||
taglib
|
||||
];
|
||||
patches = [
|
||||
./cmake-install-paths.patch
|
||||
];
|
||||
}
|
||||
17
pkgs/development/libraries/kde-frameworks/kglobalaccel.nix
Normal file
17
pkgs/development/libraries/kde-frameworks/kglobalaccel.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kconfig, kcoreaddons, kcrash, kdbusaddons, kservice, kwindowsystem,
|
||||
qtbase, qttools, qtx11extras, libXdmcp,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kglobalaccel";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kconfig kcoreaddons kcrash kdbusaddons kservice kwindowsystem qttools
|
||||
qtx11extras libXdmcp
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
14
pkgs/development/libraries/kde-frameworks/kguiaddons.nix
Normal file
14
pkgs/development/libraries/kde-frameworks/kguiaddons.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ mkDerivation
|
||||
, extra-cmake-modules
|
||||
, qtbase, qtx11extras, wayland, plasma-wayland-protocols
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kguiaddons";
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qtx11extras wayland plasma-wayland-protocols ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
16
pkgs/development/libraries/kde-frameworks/kholidays.nix
Normal file
16
pkgs/development/libraries/kde-frameworks/kholidays.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules, kdoctools,
|
||||
qtbase, qtdeclarative, qttools,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kholidays";
|
||||
meta = {
|
||||
license = with lib.licenses; [ gpl2 lgpl21 fdl12 ];
|
||||
maintainers = with lib.maintainers; [ bkchr ];
|
||||
};
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ qtbase qtdeclarative qttools ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
18
pkgs/development/libraries/kde-frameworks/khtml.nix
Normal file
18
pkgs/development/libraries/kde-frameworks/khtml.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, perl,
|
||||
giflib, karchive, kcodecs, kglobalaccel, ki18n, kiconthemes, kio, kjs,
|
||||
knotifications, kparts, ktextwidgets, kwallet, kwidgetsaddons, kwindowsystem,
|
||||
kxmlgui, phonon, qtx11extras, sonnet, gperf
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "khtml";
|
||||
nativeBuildInputs = [ extra-cmake-modules perl ];
|
||||
buildInputs = [
|
||||
giflib karchive kcodecs kglobalaccel ki18n kiconthemes kio knotifications
|
||||
kparts ktextwidgets kwallet kwidgetsaddons kwindowsystem kxmlgui phonon
|
||||
qtx11extras sonnet gperf
|
||||
];
|
||||
propagatedBuildInputs = [ kjs ];
|
||||
}
|
||||
12
pkgs/development/libraries/kde-frameworks/ki18n.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/ki18n.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, gettext, python3,
|
||||
qtbase, qtdeclarative, qtscript,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "ki18n";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedNativeBuildInputs = [ gettext python3 ];
|
||||
buildInputs = [ qtdeclarative qtscript ];
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
Index: kiconthemes-5.17.0/src/kicontheme.cpp
|
||||
===================================================================
|
||||
--- kiconthemes-5.17.0.orig/src/kicontheme.cpp
|
||||
+++ kiconthemes-5.17.0/src/kicontheme.cpp
|
||||
@@ -557,7 +557,7 @@ void KIconTheme::reconfigure()
|
||||
// static
|
||||
QString KIconTheme::defaultThemeName()
|
||||
{
|
||||
- return QStringLiteral("hicolor");
|
||||
+ return QStringLiteral("breeze");
|
||||
}
|
||||
|
||||
void KIconTheme::assignIconsToContextMenu(ContextMenus type,
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
breeze-icons, karchive, kcoreaddons, kconfigwidgets, ki18n, kitemviews,
|
||||
qtbase, qtsvg, qttools,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kiconthemes";
|
||||
patches = [
|
||||
./default-theme-breeze.patch
|
||||
];
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
breeze-icons karchive kcoreaddons kconfigwidgets ki18n kitemviews
|
||||
];
|
||||
propagatedBuildInputs = [ qtbase qtsvg qttools ];
|
||||
}
|
||||
12
pkgs/development/libraries/kde-frameworks/kidletime.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/kidletime.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
qtbase, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kidletime";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qtx11extras ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
23
pkgs/development/libraries/kde-frameworks/kimageformats.nix
Normal file
23
pkgs/development/libraries/kde-frameworks/kimageformats.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
ilmbase, karchive, openexr, libavif, libheif, qtbase
|
||||
}:
|
||||
|
||||
let inherit (lib) getDev; in
|
||||
|
||||
mkDerivation {
|
||||
pname = "kimageformats";
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ karchive openexr libavif libheif qtbase ];
|
||||
outputs = [ "out" ]; # plugins only
|
||||
CXXFLAGS = "-I${getDev ilmbase}/include/OpenEXR";
|
||||
cmakeFlags = [
|
||||
"-DKIMAGEFORMATS_HEIF=ON"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
broken = versionOlder qtbase.version "5.14";
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From 129cd0ae1e983adc10dbe84e87bcc6f31cb13db8 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Sun, 16 Feb 2020 14:23:44 -0600
|
||||
Subject: [PATCH 2/4] start_kdeinit-path
|
||||
|
||||
---
|
||||
src/start_kdeinit/start_kdeinit_wrapper.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/start_kdeinit/start_kdeinit_wrapper.c b/src/start_kdeinit/start_kdeinit_wrapper.c
|
||||
index 891f50c..ef664ad 100644
|
||||
--- a/src/start_kdeinit/start_kdeinit_wrapper.c
|
||||
+++ b/src/start_kdeinit/start_kdeinit_wrapper.c
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
-#define EXECUTE KDE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit"
|
||||
+#define EXECUTE "/run/wrappers/bin/start_kdeinit"
|
||||
|
||||
#if KDEINIT_OOM_PROTECT
|
||||
|
||||
--
|
||||
2.23.1
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
From 4f5d0de7e35744cdbfa9e280ee7e15a54cf21abb Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Sun, 16 Feb 2020 14:24:07 -0600
|
||||
Subject: [PATCH 3/4] kdeinit-extra-libs
|
||||
|
||||
---
|
||||
src/kdeinit/kinit.cpp | 22 ++++------------------
|
||||
1 file changed, 4 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/src/kdeinit/kinit.cpp b/src/kdeinit/kinit.cpp
|
||||
index 0801b75..622dd5f 100644
|
||||
--- a/src/kdeinit/kinit.cpp
|
||||
+++ b/src/kdeinit/kinit.cpp
|
||||
@@ -96,9 +96,9 @@ static const char *extra_libs[] = {
|
||||
"libKF5Parts.5.dylib",
|
||||
"libKF5Plasma.5.dylib"
|
||||
#else
|
||||
- "libKF5KIOCore.so.5",
|
||||
- "libKF5Parts.so.5",
|
||||
- "libKF5Plasma.so.5"
|
||||
+ NIXPKGS_KF5_KIOCORE,
|
||||
+ NIXPKGS_KF5_PARTS,
|
||||
+ NIXPKGS_KF5_PLASMA
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
@@ -1524,20 +1524,6 @@ static int initXconnection()
|
||||
}
|
||||
#endif
|
||||
|
||||
-#ifndef Q_OS_OSX
|
||||
-// Find a shared lib in the lib dir, e.g. libkio.so.
|
||||
-// Completely unrelated to plugins.
|
||||
-static QString findSharedLib(const QString &lib)
|
||||
-{
|
||||
- QString path = QFile::decodeName(CMAKE_INSTALL_PREFIX "/" KDE_INSTALL_LIBDIR "/") + lib;
|
||||
- if (QFile::exists(path)) {
|
||||
- return path;
|
||||
- }
|
||||
- // We could also look in LD_LIBRARY_PATH, but really, who installs the main libs in different prefixes?
|
||||
- return QString();
|
||||
-}
|
||||
-#endif
|
||||
-
|
||||
extern "C" {
|
||||
|
||||
static void secondary_child_handler(int)
|
||||
@@ -1679,7 +1665,7 @@ int main(int argc, char **argv)
|
||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_OSX)
|
||||
if (!d.suicide && qEnvironmentVariableIsEmpty("KDE_IS_PRELINKED")) {
|
||||
for (const char *extra_lib : extra_libs) {
|
||||
- const QString extra = findSharedLib(QString::fromLatin1(extra_lib));
|
||||
+ const QString extra = QString::fromLatin1(extra_lib);
|
||||
if (!extra.isEmpty()) {
|
||||
QLibrary l(extra);
|
||||
l.setLoadHints(QLibrary::ExportExternalSymbolsHint);
|
||||
--
|
||||
2.23.1
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
From 41e94983dcfbc1667f1b18c5b566aa5c5975edcb Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Mon, 17 Feb 2020 04:45:03 -0600
|
||||
Subject: [PATCH 4/4] start_kdeinit-environ-hard-limit
|
||||
|
||||
---
|
||||
src/start_kdeinit/start_kdeinit.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/start_kdeinit/start_kdeinit.c b/src/start_kdeinit/start_kdeinit.c
|
||||
index f2db3e9..4ff2602 100644
|
||||
--- a/src/start_kdeinit/start_kdeinit.c
|
||||
+++ b/src/start_kdeinit/start_kdeinit.c
|
||||
@@ -148,7 +148,11 @@ int main(int argc, char **argv)
|
||||
++i) {
|
||||
unsigned len;
|
||||
if (read(0, &len, sizeof(unsigned)) == sizeof(unsigned)
|
||||
- && len && len < (1 << 12)) {
|
||||
+ && len) {
|
||||
+ if (len >= (1 << 20)) {
|
||||
+ fprintf(stderr, "%s: exceeded environment length limit", argv[0]);
|
||||
+ return 1;
|
||||
+ }
|
||||
env[ i ] = malloc(len + 1);
|
||||
if ((unsigned) read(0, env[ i ], len) == len) {
|
||||
env[ i ][ len ] = '\0';
|
||||
--
|
||||
2.23.1
|
||||
|
||||
37
pkgs/development/libraries/kde-frameworks/kinit/default.nix
Normal file
37
pkgs/development/libraries/kde-frameworks/kinit/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
mkDerivation, lib, writeScript,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kconfig, kcrash, ki18n, kio, kparts, kservice, kwindowsystem, plasma-framework
|
||||
}:
|
||||
|
||||
let inherit (lib) getLib; in
|
||||
|
||||
mkDerivation {
|
||||
pname = "kinit";
|
||||
outputs = [ "out" "dev" ];
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kconfig kcrash ki18n kio kservice kwindowsystem
|
||||
];
|
||||
patches = [
|
||||
./0002-start_kdeinit-path.patch
|
||||
./0003-kdeinit-extra-libs.patch
|
||||
./0004-start_kdeinit-environ-hard-limit.patch
|
||||
];
|
||||
CXXFLAGS = [
|
||||
''-DNIXPKGS_KF5_KIOCORE=\"${getLib kio}/lib/libKF5KIOCore.so.5\"''
|
||||
''-DNIXPKGS_KF5_PARTS=\"${getLib kparts}/lib/libKF5Parts.so.5\"''
|
||||
''-DNIXPKGS_KF5_PLASMA=\"${getLib plasma-framework}/lib/libKF5Plasma.so.5\"''
|
||||
];
|
||||
setupHook = writeScript "setup-hook.sh" ''
|
||||
kinitFixupOutputHook() {
|
||||
if [ $prefix != ''${!outputBin} ] && [ -d $prefix/lib ]; then
|
||||
mkdir -p ''${!outputBin}/lib
|
||||
find $prefix/lib -maxdepth 1 -name 'libkdeinit5_*.so' -exec ln -s \{\} ''${!outputBin}/lib \;
|
||||
rmdir --ignore-fail-on-non-empty ''${!outputBin}/lib
|
||||
fi
|
||||
}
|
||||
|
||||
fixupOutputHooks+=(kinitFixupOutputHook)
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From af54a2a37655df26a33bc6783cb472c38f65322f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Sun, 28 Mar 2021 10:31:12 -0500
|
||||
Subject: [PATCH 1/2] Remove impure smbd search path
|
||||
|
||||
---
|
||||
src/core/ksambashare.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/ksambashare.cpp b/src/core/ksambashare.cpp
|
||||
index e810ce4..7cfb4e6 100644
|
||||
--- a/src/core/ksambashare.cpp
|
||||
+++ b/src/core/ksambashare.cpp
|
||||
@@ -61,7 +61,7 @@ KSambaSharePrivate::~KSambaSharePrivate()
|
||||
bool KSambaSharePrivate::isSambaInstalled()
|
||||
{
|
||||
const bool daemonExists =
|
||||
- !QStandardPaths::findExecutable(QStringLiteral("smbd"), {QStringLiteral("/usr/sbin/"), QStringLiteral("/usr/local/sbin/")}).isEmpty();
|
||||
+ !QStandardPaths::findExecutable(QStringLiteral("smbd")).isEmpty();
|
||||
if (!daemonExists) {
|
||||
qCDebug(KIO_CORE_SAMBASHARE) << "KSambaShare: Could not find smbd";
|
||||
}
|
||||
--
|
||||
2.30.1
|
||||
|
||||
30
pkgs/development/libraries/kde-frameworks/kio/default.nix
Normal file
30
pkgs/development/libraries/kde-frameworks/kio/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
stdenv, lib, mkDerivation, fetchpatch,
|
||||
extra-cmake-modules, kdoctools, qttools,
|
||||
acl, attr, libkrb5, util-linux,
|
||||
karchive, kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons,
|
||||
kdbusaddons, ki18n, kiconthemes, kitemviews, kjobwidgets, knotifications,
|
||||
kservice, ktextwidgets, kwallet, kwidgetsaddons, kwindowsystem, kxmlgui,
|
||||
qtbase, qtscript, qtx11extras, solid, kcrash, kded
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kio";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
karchive kconfigwidgets kdbusaddons ki18n kiconthemes knotifications
|
||||
ktextwidgets kwallet kwidgetsaddons kwindowsystem qtscript qtx11extras
|
||||
kcrash libkrb5
|
||||
] ++ lib.lists.optionals stdenv.isLinux [
|
||||
acl attr # both are needed for ACL support
|
||||
util-linux # provides libmount
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
kbookmarks kcompletion kconfig kcoreaddons kitemviews kjobwidgets kservice
|
||||
kxmlgui qtbase qttools solid kded
|
||||
];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [
|
||||
./0001-Remove-impure-smbd-search-path.patch
|
||||
];
|
||||
}
|
||||
8
pkgs/development/libraries/kde-frameworks/kirigami2.nix
Normal file
8
pkgs/development/libraries/kde-frameworks/kirigami2.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ mkDerivation, extra-cmake-modules, qtbase, qtquickcontrols2, qttranslations, qtgraphicaleffects }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kirigami2";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qtbase qtquickcontrols2 qttranslations qtgraphicaleffects ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
12
pkgs/development/libraries/kde-frameworks/kitemmodels.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/kitemmodels.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kitemmodels";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kitemviews.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kitemviews.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation, lib,
|
||||
extra-cmake-modules,
|
||||
qtbase, qttools
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kitemviews";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qttools ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
11
pkgs/development/libraries/kde-frameworks/kjobwidgets.nix
Normal file
11
pkgs/development/libraries/kde-frameworks/kjobwidgets.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, qttools,
|
||||
kcoreaddons, kwidgetsaddons, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kjobwidgets";
|
||||
nativeBuildInputs = [ extra-cmake-modules qttools ];
|
||||
buildInputs = [ kcoreaddons kwidgetsaddons qtx11extras ];
|
||||
}
|
||||
11
pkgs/development/libraries/kde-frameworks/kjs.nix
Normal file
11
pkgs/development/libraries/kde-frameworks/kjs.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools,
|
||||
pcre, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kjs";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ pcre qtbase ];
|
||||
}
|
||||
12
pkgs/development/libraries/kde-frameworks/kjsembed.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/kjsembed.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools, qttools,
|
||||
ki18n, kjs, qtsvg,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kjsembed";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools qttools ];
|
||||
buildInputs = [ ki18n qtsvg ];
|
||||
propagatedBuildInputs = [ kjs ];
|
||||
}
|
||||
11
pkgs/development/libraries/kde-frameworks/kmediaplayer.nix
Normal file
11
pkgs/development/libraries/kde-frameworks/kmediaplayer.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ mkDerivation
|
||||
, extra-cmake-modules
|
||||
, kparts
|
||||
, kxmlgui
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kmediaplayer";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kparts kxmlgui ];
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From 09b5063e115c36b75e291230175b449a0f6d0c29 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Sun, 28 Mar 2021 13:34:33 -0500
|
||||
Subject: [PATCH] Delay resolving knsrcdir
|
||||
|
||||
---
|
||||
KF5NewStuffCoreConfig.cmake.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/KF5NewStuffCoreConfig.cmake.in b/KF5NewStuffCoreConfig.cmake.in
|
||||
index c65c7c4..3275627 100644
|
||||
--- a/KF5NewStuffCoreConfig.cmake.in
|
||||
+++ b/KF5NewStuffCoreConfig.cmake.in
|
||||
@@ -3,7 +3,7 @@
|
||||
include(CMakeFindDependencyMacro)
|
||||
find_dependency(KF5Attica "@KF_DEP_VERSION@")
|
||||
|
||||
-set(KDE_INSTALL_KNSRCDIR "@KDE_INSTALL_DATADIR@/knsrcfiles")
|
||||
+set(KDE_INSTALL_KNSRCDIR "${KDE_INSTALL_DATADIR}/knsrcfiles")
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/KF5NewStuffCoreTargets.cmake")
|
||||
@PACKAGE_INCLUDE_CORE_QCHTARGETS@
|
||||
--
|
||||
2.30.1
|
||||
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
mkDerivation, fetchpatch,
|
||||
extra-cmake-modules,
|
||||
attica, karchive, kcompletion, kconfig, kcoreaddons, ki18n, kiconthemes,
|
||||
kio, kitemviews, kpackage, kservice, ktextwidgets, kwidgetsaddons, kxmlgui, qtbase,
|
||||
qtdeclarative, kirigami2, syndication,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "knewstuff";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
karchive kcompletion kconfig kcoreaddons ki18n kiconthemes kio kitemviews
|
||||
kpackage
|
||||
ktextwidgets kwidgetsaddons qtbase qtdeclarative kirigami2 syndication
|
||||
];
|
||||
propagatedBuildInputs = [ attica kservice kxmlgui ];
|
||||
patches = [
|
||||
./0001-Delay-resolving-knsrcdir.patch
|
||||
];
|
||||
}
|
||||
15
pkgs/development/libraries/kde-frameworks/knotifications.nix
Normal file
15
pkgs/development/libraries/kde-frameworks/knotifications.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ mkDerivation
|
||||
, extra-cmake-modules
|
||||
, kcodecs, kconfig, kcoreaddons, kwindowsystem
|
||||
, libdbusmenu
|
||||
, phonon
|
||||
, qttools, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "knotifications";
|
||||
nativeBuildInputs = [ extra-cmake-modules qttools ];
|
||||
buildInputs = [
|
||||
kcodecs kconfig kcoreaddons kwindowsystem libdbusmenu phonon qtx11extras
|
||||
];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/knotifyconfig.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/knotifyconfig.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kcompletion, kconfig, ki18n, kio, phonon, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "knotifyconfig";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kcompletion kconfig ki18n kio phonon ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From c134a83d226fc6b92412ee714bb6c7ab7e3a800f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Sun, 28 Mar 2021 10:25:18 -0500
|
||||
Subject: [PATCH 1/2] Allow external paths default
|
||||
|
||||
---
|
||||
src/kpackage/package.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/kpackage/package.cpp b/src/kpackage/package.cpp
|
||||
index 36f5600..881f176 100644
|
||||
--- a/src/kpackage/package.cpp
|
||||
+++ b/src/kpackage/package.cpp
|
||||
@@ -866,7 +866,7 @@ PackagePrivate::PackagePrivate()
|
||||
PackagePrivate::PackagePrivate()
|
||||
: QSharedData()
|
||||
, fallbackPackage(nullptr)
|
||||
- , externalPaths(false)
|
||||
+ , externalPaths(true)
|
||||
, valid(false)
|
||||
, checkedValid(false)
|
||||
{
|
||||
--
|
||||
2.30.1
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From b1c0d2542234247a5051df015d70347597dfe8d8 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Tuegel <ttuegel@mailbox.org>
|
||||
Date: Sun, 28 Mar 2021 10:26:40 -0500
|
||||
Subject: [PATCH 2/2] QDirIterator follow symlinks
|
||||
|
||||
---
|
||||
src/kpackage/packageloader.cpp | 2 +-
|
||||
src/kpackage/private/packagejobthread.cpp | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/kpackage/packageloader.cpp b/src/kpackage/packageloader.cpp
|
||||
index f03d882..d5aee56 100644
|
||||
--- a/src/kpackage/packageloader.cpp
|
||||
+++ b/src/kpackage/packageloader.cpp
|
||||
@@ -196,7 +196,7 @@ QList<KPluginMetaData> PackageLoader::listPackages(const QString &packageFormat,
|
||||
}
|
||||
|
||||
for (auto const &plugindir : std::as_const(paths)) {
|
||||
- const QDirIterator::IteratorFlags flags = QDirIterator::Subdirectories;
|
||||
+ const QDirIterator::IteratorFlags flags = QDirIterator::Subdirectories | QDirIterator::FollowSymlinks;
|
||||
const QStringList nameFilters = {QStringLiteral("metadata.json"), QStringLiteral("metadata.desktop")};
|
||||
|
||||
QDirIterator it(plugindir, nameFilters, QDir::Files, flags);
|
||||
--
|
||||
2.30.1
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools,
|
||||
karchive, kconfig, kcoreaddons, ki18n, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kpackage";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ karchive kconfig kcoreaddons ki18n qtbase ];
|
||||
patches = [
|
||||
./0001-Allow-external-paths-default.patch
|
||||
./0002-QDirIterator-follow-symlinks.patch
|
||||
];
|
||||
}
|
||||
16
pkgs/development/libraries/kde-frameworks/kparts.nix
Normal file
16
pkgs/development/libraries/kde-frameworks/kparts.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kconfig, kcoreaddons, ki18n, kiconthemes, kio, kjobwidgets, knotifications,
|
||||
kservice, ktextwidgets, kwidgetsaddons, kxmlgui
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kparts";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kconfig kcoreaddons ki18n kiconthemes kjobwidgets knotifications kservice
|
||||
kwidgetsaddons
|
||||
];
|
||||
propagatedBuildInputs = [ kio ktextwidgets kxmlgui ];
|
||||
}
|
||||
15
pkgs/development/libraries/kde-frameworks/kpeople.nix
Normal file
15
pkgs/development/libraries/kde-frameworks/kpeople.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kcoreaddons, ki18n, kitemviews, kservice, kwidgetsaddons, qtbase,
|
||||
qtdeclarative,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kpeople";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kcoreaddons ki18n kitemviews kservice kwidgetsaddons qtdeclarative
|
||||
];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
10
pkgs/development/libraries/kde-frameworks/kplotting.nix
Normal file
10
pkgs/development/libraries/kde-frameworks/kplotting.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ mkDerivation
|
||||
, extra-cmake-modules, qttools, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kplotting";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [ qtbase qttools ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
8
pkgs/development/libraries/kde-frameworks/kpty.nix
Normal file
8
pkgs/development/libraries/kde-frameworks/kpty.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ mkDerivation, extra-cmake-modules, kcoreaddons, ki18n, qtbase, }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kpty";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kcoreaddons ki18n qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
12
pkgs/development/libraries/kde-frameworks/kquickcharts.nix
Normal file
12
pkgs/development/libraries/kde-frameworks/kquickcharts.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
qtquickcontrols2, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kquickcharts";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [ qtquickcontrols2 ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kross.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kross.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ mkDerivation, extra-cmake-modules, kcompletion, kcoreaddons
|
||||
, kdoctools, ki18n, kiconthemes, kio, kparts, kwidgetsaddons
|
||||
, kxmlgui, qtbase, qtscript, qtxmlpatterns,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kross";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [ kcompletion kcoreaddons kxmlgui ];
|
||||
propagatedBuildInputs = [
|
||||
ki18n kiconthemes kio kparts kwidgetsaddons qtbase qtscript qtxmlpatterns
|
||||
];
|
||||
}
|
||||
18
pkgs/development/libraries/kde-frameworks/krunner.nix
Normal file
18
pkgs/development/libraries/kde-frameworks/krunner.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation, fetchpatch,
|
||||
extra-cmake-modules,
|
||||
kconfig, kcoreaddons, ki18n, kio, kservice, plasma-framework, qtbase,
|
||||
qtdeclarative, solid, threadweaver, kwindowsystem
|
||||
}:
|
||||
|
||||
let
|
||||
self = mkDerivation {
|
||||
pname = "krunner";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kconfig kcoreaddons ki18n kio kservice qtdeclarative solid
|
||||
threadweaver
|
||||
];
|
||||
propagatedBuildInputs = [ plasma-framework qtbase kwindowsystem ];
|
||||
};
|
||||
in self
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
mkDerivation,
|
||||
bison, extra-cmake-modules, flex,
|
||||
kconfig, kcoreaddons, kcrash, kdbusaddons, kdoctools, ki18n, kwindowsystem,
|
||||
qtbase, shared-mime-info,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kservice";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
propagatedNativeBuildInputs = [ bison flex ];
|
||||
buildInputs = [
|
||||
kcrash kdbusaddons ki18n kwindowsystem qtbase
|
||||
];
|
||||
propagatedBuildInputs = [ kconfig kcoreaddons ];
|
||||
propagatedUserEnvPkgs = [ shared-mime-info ]; # for kbuildsycoca5
|
||||
patches = [
|
||||
./qdiriterator-follow-symlinks.patch
|
||||
./no-canonicalize-path.patch
|
||||
];
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
Index: kservice-5.21.0/src/sycoca/vfolder_menu.cpp
|
||||
===================================================================
|
||||
--- kservice-5.21.0.orig/src/sycoca/vfolder_menu.cpp
|
||||
+++ kservice-5.21.0/src/sycoca/vfolder_menu.cpp
|
||||
@@ -415,7 +415,7 @@ VFolderMenu::absoluteDir(const QString &
|
||||
}
|
||||
|
||||
if (!relative) {
|
||||
- QString resolved = QDir(dir).canonicalPath();
|
||||
+ QString resolved = QDir::cleanPath(dir);
|
||||
if (!resolved.isEmpty()) {
|
||||
dir = resolved;
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/sycoca/kbuildsycoca.cpp b/src/sycoca/kbuildsycoca.cpp
|
||||
index b125299..0682b90 100644
|
||||
--- a/src/sycoca/kbuildsycoca.cpp
|
||||
+++ b/src/sycoca/kbuildsycoca.cpp
|
||||
@@ -207,7 +207,7 @@ bool KBuildSycoca::build()
|
||||
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, m_resourceSubdir, QStandardPaths::LocateDirectory);
|
||||
qCDebug(SYCOCA) << "Looking for subdir" << m_resourceSubdir << "=>" << dirs;
|
||||
for (const QString &dir : dirs) {
|
||||
- QDirIterator it(dir, QDirIterator::Subdirectories);
|
||||
+ QDirIterator it(dir, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks);
|
||||
while (it.hasNext()) {
|
||||
const QString filePath = it.next();
|
||||
Q_ASSERT(filePath.startsWith(dir)); // due to the line below...
|
||||
18
pkgs/development/libraries/kde-frameworks/ktexteditor.nix
Normal file
18
pkgs/development/libraries/kde-frameworks/ktexteditor.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, perl,
|
||||
karchive, kconfig, kguiaddons, ki18n, kiconthemes, kio, kparts, libgit2,
|
||||
qtscript, qtxmlpatterns, sonnet, syntax-highlighting, qtquickcontrols,
|
||||
editorconfig-core-c
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "ktexteditor";
|
||||
nativeBuildInputs = [ extra-cmake-modules perl ];
|
||||
buildInputs = [
|
||||
karchive kconfig kguiaddons ki18n kiconthemes kio libgit2 qtscript
|
||||
qtxmlpatterns sonnet syntax-highlighting qtquickcontrols
|
||||
editorconfig-core-c
|
||||
];
|
||||
propagatedBuildInputs = [ kparts ];
|
||||
}
|
||||
15
pkgs/development/libraries/kde-frameworks/ktextwidgets.nix
Normal file
15
pkgs/development/libraries/kde-frameworks/ktextwidgets.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, qttools,
|
||||
kcompletion, kconfig, kconfigwidgets, ki18n, kiconthemes, kservice,
|
||||
kwindowsystem, qtbase, sonnet,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "ktextwidgets";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
kcompletion kconfig kconfigwidgets kiconthemes kservice kwindowsystem
|
||||
];
|
||||
propagatedBuildInputs = [ ki18n qtbase qttools sonnet ];
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
{ mkDerivation, extra-cmake-modules, ki18n, qtbase, }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kunitconversion";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ ki18n qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
17
pkgs/development/libraries/kde-frameworks/kwallet.nix
Normal file
17
pkgs/development/libraries/kde-frameworks/kwallet.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kconfig, kconfigwidgets, kcoreaddons , kdbusaddons, ki18n,
|
||||
kiconthemes, knotifications, kservice, kwidgetsaddons, kwindowsystem,
|
||||
libgcrypt, qgpgme, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwallet";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kconfig kconfigwidgets kcoreaddons kdbusaddons ki18n kiconthemes
|
||||
knotifications kservice kwidgetsaddons kwindowsystem libgcrypt qgpgme
|
||||
];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kwayland.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kwayland.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation, propagateBin,
|
||||
extra-cmake-modules,
|
||||
plasma-wayland-protocols, qtbase, wayland, wayland-protocols
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwayland";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ plasma-wayland-protocols wayland wayland-protocols ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
setupHook = propagateBin; # XDG_CONFIG_DIRS
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/kwidgetsaddons.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/kwidgetsaddons.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
qtbase, qttools
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwidgetsaddons";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qttools ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
libpthreadstubs, libXdmcp,
|
||||
qtbase, qttools, qtx11extras
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kwindowsystem";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ libpthreadstubs libXdmcp qttools qtx11extras ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
16
pkgs/development/libraries/kde-frameworks/kxmlgui.nix
Normal file
16
pkgs/development/libraries/kde-frameworks/kxmlgui.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, qttools,
|
||||
attica, kconfig, kconfigwidgets, kglobalaccel, ki18n, kiconthemes, kitemviews,
|
||||
ktextwidgets, kwindowsystem, qtbase, sonnet,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kxmlgui";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [
|
||||
attica kglobalaccel ki18n kiconthemes kitemviews ktextwidgets kwindowsystem
|
||||
sonnet
|
||||
];
|
||||
propagatedBuildInputs = [ kconfig kconfigwidgets qtbase qttools ];
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{ mkDerivation, extra-cmake-modules, ki18n, kio }:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kxmlrpcclient";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ ki18n ];
|
||||
propagatedBuildInputs = [ kio ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
modemmanager, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "modemmanager-qt";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [ modemmanager qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
networkmanager, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "networkmanager-qt";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
propagatedBuildInputs = [ networkmanager qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/oxygen-icons5.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/oxygen-icons5.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ mkDerivation
|
||||
, lib
|
||||
, extra-cmake-modules
|
||||
, qtbase
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "oxygen-icons5";
|
||||
meta.license = lib.licenses.lgpl3Plus;
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ qtbase ];
|
||||
outputs = [ "out" ]; # only runtime outputs
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules, kdoctools,
|
||||
kactivities, karchive, kconfig, kconfigwidgets, kcoreaddons, kdbusaddons,
|
||||
kdeclarative, kglobalaccel, kguiaddons, ki18n, kiconthemes, kio,
|
||||
knotifications, kpackage, kservice, kwayland, kwindowsystem, kxmlgui,
|
||||
qtbase, qtdeclarative, qtscript, qtx11extras, kirigami2, qtquickcontrols2
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "plasma-framework";
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
||||
buildInputs = [
|
||||
kactivities karchive kconfig kconfigwidgets kcoreaddons kdbusaddons
|
||||
kdeclarative kglobalaccel kguiaddons ki18n kiconthemes kio knotifications
|
||||
kwayland kwindowsystem kxmlgui qtdeclarative qtscript qtx11extras kirigami2
|
||||
qtquickcontrols2
|
||||
];
|
||||
propagatedBuildInputs = [ kpackage kservice qtbase ];
|
||||
}
|
||||
13
pkgs/development/libraries/kde-frameworks/prison.nix
Normal file
13
pkgs/development/libraries/kde-frameworks/prison.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
libdmtx, qrencode, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "prison";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ libdmtx qrencode ];
|
||||
propagatedBuildInputs = [ qtbase ];
|
||||
outputs = [ "out" "dev" ];
|
||||
}
|
||||
14
pkgs/development/libraries/kde-frameworks/purpose.nix
Normal file
14
pkgs/development/libraries/kde-frameworks/purpose.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
mkDerivation, extra-cmake-modules, intltool, qtbase
|
||||
, accounts-qt, qtdeclarative, kaccounts-integration, kconfig, kcoreaddons, ki18n, kio, kirigami2
|
||||
, fetchpatch, signond
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "purpose";
|
||||
nativeBuildInputs = [ extra-cmake-modules intltool ];
|
||||
buildInputs = [
|
||||
qtbase accounts-qt qtdeclarative kaccounts-integration kconfig kcoreaddons
|
||||
ki18n kio kirigami2 signond
|
||||
];
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue