Merge pull request #228016 from wegank/kf5-platforms

plasma5Packages: restrict platforms
This commit is contained in:
Weijia Wang 2023-04-25 15:56:24 +03:00 committed by GitHub
commit f38eca6a7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 37 additions and 17 deletions

View file

@ -103,6 +103,7 @@ in mkDerivation rec {
license = licenses.gpl3;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.unix;
broken = stdenv.isDarwin;
};
}

View file

@ -73,5 +73,6 @@ mkDerivation rec {
license = licenses.gpl2;
maintainers = with maintainers; [ yvesf ];
platforms = qtbase.meta.platforms;
broken = stdenv.isDarwin;
};
}

View file

@ -1,5 +1,5 @@
{
mkDerivation,
mkDerivation, lib,
extra-cmake-modules,
kauth, kconfig, kcoreaddons, kcrash, kdbusaddons, kfilemetadata, ki18n,
kidletime, kio, lmdb, qtbase, qtdeclarative, solid,
@ -22,4 +22,5 @@ mkDerivation {
substituteInPlace "$sourceRoot"/src/file/kde-baloo.service.in \
--replace @KDE_INSTALL_FULL_BINDIR@ /run/current-system/sw/bin
'';
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
}

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ mkDerivation, lib
, extra-cmake-modules
, qtbase, qtdeclarative
}:
@ -12,4 +12,5 @@ mkDerivation {
substituteInPlace CMakeLists.txt \
--replace /lib/udev/rules.d "$bin/lib/udev/rules.d"
'';
meta.platforms = lib.platforms.linux;
}

View file

@ -1,5 +1,5 @@
{
mkDerivation,
mkDerivation, lib,
extra-cmake-modules,
boost, kactivities, kconfig, qtbase,
}:
@ -10,4 +10,5 @@ mkDerivation {
buildInputs = [ boost kactivities kconfig ];
propagatedBuildInputs = [ qtbase ];
outputs = [ "out" "dev" ];
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
}

View file

@ -1,5 +1,5 @@
{
mkDerivation, propagate, wrapGAppsHook,
mkDerivation, lib, propagate, wrapGAppsHook,
extra-cmake-modules, kdoctools,
gsettings-desktop-schemas, kconfig, kcoreaddons, kcrash, kdbusaddons,
kservice, qtbase,
@ -18,4 +18,5 @@ mkDerivation {
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
}

View file

@ -1,5 +1,5 @@
{
mkDerivation,
mkDerivation, lib,
extra-cmake-modules,
kcoreaddons, ki18n, kpty, kservice, qtbase,
}:
@ -11,4 +11,5 @@ mkDerivation {
propagatedBuildInputs = [ kpty ];
outputs = [ "out" "dev" ];
patches = [ ./kdesu-search-for-wrapped-daemon-first.patch ];
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
}

View file

@ -1,5 +1,6 @@
{ mkDerivation
, lib
, stdenv
, extra-cmake-modules
, attr
, ebook_tools
@ -17,8 +18,9 @@
mkDerivation {
pname = "kfilemetadata";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [
buildInputs = lib.optionals stdenv.isLinux [
attr
] ++ [
ebook_tools
exiv2
ffmpeg

View file

@ -1,5 +1,5 @@
{
mkDerivation, lib, writeScript,
mkDerivation, lib, stdenv, writeScript,
extra-cmake-modules, kdoctools,
kconfig, kcrash, ki18n, kio, kparts, kservice, kwindowsystem, plasma-framework
}:
@ -21,6 +21,7 @@ mkDerivation {
CXXFLAGS = [
''-DNIXPKGS_KF5_KIOCORE=\"${getLib kio}/lib/libKF5KIOCore.so.5\"''
''-DNIXPKGS_KF5_PARTS=\"${getLib kparts}/lib/libKF5Parts.so.5\"''
] ++ lib.optionals stdenv.isLinux [
''-DNIXPKGS_KF5_PLASMA=\"${getLib plasma-framework}/lib/libKF5Plasma.so.5\"''
];
setupHook = writeScript "setup-hook.sh" ''

View file

@ -21,7 +21,9 @@ mkDerivation {
];
propagatedBuildInputs = [
kbookmarks kcompletion kconfig kcoreaddons kitemviews kjobwidgets kservice
kxmlgui qtbase qttools solid kded
kxmlgui qtbase qttools solid
] ++ lib.optionals stdenv.isLinux [
kded
];
outputs = [ "out" "dev" ];
patches = [

View file

@ -1,9 +1,9 @@
{ mkDerivation
{ mkDerivation, lib, stdenv
, extra-cmake-modules
, kcodecs, kconfig, kcoreaddons, kwindowsystem
, libdbusmenu
, phonon
, qttools, qtx11extras
, qttools, qtx11extras, qtmacextras
}:
mkDerivation {
@ -11,5 +11,7 @@ mkDerivation {
nativeBuildInputs = [ extra-cmake-modules qttools ];
buildInputs = [
kcodecs kconfig kcoreaddons kwindowsystem libdbusmenu phonon qtx11extras
] ++ lib.optionals stdenv.isDarwin [
qtmacextras
];
}

View file

@ -1,5 +1,5 @@
{
mkDerivation, propagateBin,
mkDerivation, propagateBin, lib,
extra-cmake-modules,
plasma-wayland-protocols, qtbase, wayland, wayland-protocols
}:
@ -10,4 +10,5 @@ mkDerivation {
buildInputs = [ plasma-wayland-protocols wayland wayland-protocols ];
propagatedBuildInputs = [ qtbase ];
setupHook = propagateBin; # XDG_CONFIG_DIRS
meta.platforms = lib.platforms.linux ++ lib.platforms.freebsd;
}

View file

@ -1,5 +1,5 @@
{
mkDerivation,
mkDerivation, lib,
extra-cmake-modules,
modemmanager, qtbase
}:
@ -9,4 +9,5 @@ mkDerivation {
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [ modemmanager qtbase ];
outputs = [ "out" "dev" ];
meta.platforms = lib.platforms.linux;
}

View file

@ -1,5 +1,5 @@
{
mkDerivation,
mkDerivation, lib,
extra-cmake-modules,
networkmanager, qtbase,
}:
@ -9,4 +9,5 @@ mkDerivation {
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [ networkmanager qtbase ];
outputs = [ "out" "dev" ];
meta.platforms = lib.platforms.linux;
}

View file

@ -1,5 +1,5 @@
{
mkDerivation,
mkDerivation, lib, stdenv,
bison, extra-cmake-modules, flex,
media-player-info, qtbase, qtdeclarative, qttools
}:
@ -7,8 +7,9 @@
mkDerivation {
pname = "solid";
patches = [ ./fix-search-path.patch ];
nativeBuildInputs = [ bison extra-cmake-modules flex media-player-info ];
nativeBuildInputs = [ bison extra-cmake-modules flex ]
++ lib.optionals stdenv.isLinux [ media-player-info ];
buildInputs = [ qtdeclarative qttools ];
propagatedBuildInputs = [ qtbase ];
propagatedUserEnvPkgs = [ media-player-info ];
propagatedUserEnvPkgs = lib.optionals stdenv.isLinux [ media-player-info ];
}

View file

@ -39,6 +39,7 @@ mkDerivation rec {
# Missing license information https://github.com/Nitrux/maui-core/issues/1
license = licenses.unfree;
maintainers = with maintainers; [ onny ];
platforms = platforms.linux;
};
}

View file

@ -25,8 +25,9 @@ stdenv.mkDerivation rec {
homepage = "https://community.kde.org/Phonon";
description = "Multimedia API for Qt";
license = lib.licenses.lgpl2;
platforms = lib.platforms.linux;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ttuegel ];
broken = stdenv.isDarwin;
};
src = fetchurl {