Merge pull request #327657 from K900/kirigami-hacks

kdePackages.kirigami: hack to propagate qqc2-desktop-style
This commit is contained in:
K900 2024-07-16 19:59:27 +03:00 committed by GitHub
commit 7ffbecde9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 30 additions and 16 deletions

View File

@ -1,14 +1,34 @@
{
stdenv,
mkKdeDerivation,
qtsvg,
qttools,
qtdeclarative,
qt5compat,
qqc2-desktop-style,
}:
mkKdeDerivation {
# Kirigami has a runtime dependency on qqc2-desktop-style,
# which has a build time dependency on Kirigami.
# So, build qqc2-desktop-style against unwrapped Kirigami,
# and replace all the other Kirigami with a wrapper that
# propagates both Kirigami and qqc2-desktop-style.
# This is a hack, but what can you do.
let
unwrapped = mkKdeDerivation {
pname = "kirigami";
extraNativeBuildInputs = [qtsvg qttools];
extraBuildInputs = [qtdeclarative];
extraPropagatedBuildInputs = [qt5compat];
};
in stdenv.mkDerivation {
pname = "kirigami-wrapped";
inherit (unwrapped) version;
propagatedBuildInputs = [ unwrapped qqc2-desktop-style ];
dontUnpack = true;
dontWrapQtApps = true;
passthru = { inherit unwrapped; };
}

View File

@ -2,10 +2,13 @@
mkKdeDerivation,
qtdeclarative,
qttools,
kirigami,
}:
mkKdeDerivation {
pname = "qqc2-desktop-style";
extraNativeBuildInputs = [qttools];
extraBuildInputs = [qtdeclarative];
extraBuildInputs = [qtdeclarative kirigami.unwrapped];
excludeDependencies = ["kirigami"];
}

View File

@ -2,7 +2,6 @@
mkKdeDerivation,
kirigami,
kquickcharts,
qqc2-desktop-style,
}:
mkKdeDerivation {
pname = "filelight";
@ -10,7 +9,6 @@ mkKdeDerivation {
extraBuildInputs = [
kirigami
kquickcharts
qqc2-desktop-style
];
meta.mainProgram = "filelight";
}

View File

@ -1,7 +1,6 @@
{
mkKdeDerivation,
qtdeclarative,
qqc2-desktop-style,
kirigami-addons,
pkg-config,
bison,
@ -16,7 +15,6 @@ mkKdeDerivation {
extraNativeBuildInputs = [pkg-config bison flex];
extraBuildInputs = [
qtdeclarative
qqc2-desktop-style
kirigami-addons
gmp
mpfr

View File

@ -2,12 +2,11 @@
mkKdeDerivation,
qtsvg,
qtcharts,
qqc2-desktop-style,
kholidays,
}:
mkKdeDerivation {
pname = "kweather";
extraBuildInputs = [qtsvg qtcharts qqc2-desktop-style kholidays];
extraBuildInputs = [qtsvg qtcharts kholidays];
meta.mainProgram = "kweather";
}

View File

@ -2,7 +2,6 @@
mkKdeDerivation,
qtsvg,
qtmultimedia,
qqc2-desktop-style,
}:
mkKdeDerivation {
pname = "kwordquiz";
@ -10,7 +9,6 @@ mkKdeDerivation {
extraBuildInputs = [
qtsvg
qtmultimedia
qqc2-desktop-style
];
meta.mainProgram = "kwordquiz";
}

View File

@ -5,7 +5,6 @@
qtdeclarative,
qtsvg,
qtwayland,
qqc2-desktop-style
}:
mkKdeDerivation rec {
pname = "marknote";
@ -20,7 +19,6 @@ mkKdeDerivation rec {
qtdeclarative
qtsvg
qtwayland
qqc2-desktop-style
];
meta.license = [ lib.licenses.gpl2Plus ];