mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #327657 from K900/kirigami-hacks
kdePackages.kirigami: hack to propagate qqc2-desktop-style
This commit is contained in:
commit
7ffbecde9a
@ -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; };
|
||||
}
|
||||
|
@ -2,10 +2,13 @@
|
||||
mkKdeDerivation,
|
||||
qtdeclarative,
|
||||
qttools,
|
||||
kirigami,
|
||||
}:
|
||||
mkKdeDerivation {
|
||||
pname = "qqc2-desktop-style";
|
||||
|
||||
extraNativeBuildInputs = [qttools];
|
||||
extraBuildInputs = [qtdeclarative];
|
||||
extraBuildInputs = [qtdeclarative kirigami.unwrapped];
|
||||
|
||||
excludeDependencies = ["kirigami"];
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user