Merge pull request #83265 from worldofpeace/fix-wingpanel-and-switchboard
Fix wingpanel and switchboard
This commit is contained in:
commit
5a10c51ace
@ -1,7 +1,8 @@
|
|||||||
{ wrapGAppsHook
|
{ wrapGAppsHook
|
||||||
, glib
|
, glib
|
||||||
, lib
|
, lib
|
||||||
, symlinkJoin
|
, stdenv
|
||||||
|
, xorg
|
||||||
, switchboard
|
, switchboard
|
||||||
, switchboardPlugs
|
, switchboardPlugs
|
||||||
, plugs
|
, plugs
|
||||||
@ -14,26 +15,45 @@ let
|
|||||||
if plugs == null then switchboardPlugs
|
if plugs == null then switchboardPlugs
|
||||||
else plugs ++ (lib.optionals useDefaultPlugs switchboardPlugs);
|
else plugs ++ (lib.optionals useDefaultPlugs switchboardPlugs);
|
||||||
in
|
in
|
||||||
symlinkJoin {
|
stdenv.mkDerivation rec {
|
||||||
name = "${switchboard.name}-with-plugs";
|
name = "${switchboard.name}-with-plugs";
|
||||||
|
|
||||||
|
src = null;
|
||||||
|
|
||||||
paths = [
|
paths = [
|
||||||
switchboard
|
switchboard
|
||||||
] ++ selectedPlugs;
|
] ++ selectedPlugs;
|
||||||
|
|
||||||
buildInputs = [
|
passAsFile = [ "paths" ];
|
||||||
wrapGAppsHook
|
|
||||||
|
nativeBuildInputs = [
|
||||||
glib
|
glib
|
||||||
] ++ (lib.forEach selectedPlugs (x: x.buildInputs))
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = lib.forEach selectedPlugs (x: x.buildInputs)
|
||||||
++ selectedPlugs;
|
++ selectedPlugs;
|
||||||
|
|
||||||
postBuild = ''
|
dontUnpack = true;
|
||||||
make_glib_find_gsettings_schemas
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
gappsWrapperArgs+=(--set SWITCHBOARD_PLUGS_PATH "$out/lib/switchboard")
|
preferLocalBuild = true;
|
||||||
|
allowSubstitutes = false;
|
||||||
|
|
||||||
wrapGAppsHook
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
for i in $(cat $pathsPath); do
|
||||||
|
${xorg.lndir}/bin/lndir -silent $i $out
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--set SWITCHBOARD_PLUGS_PATH "$out/lib/switchboard"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
inherit (switchboard) meta;
|
inherit (switchboard) meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, glib
|
, glib
|
||||||
, symlinkJoin
|
, stdenv
|
||||||
|
, xorg
|
||||||
, wingpanel
|
, wingpanel
|
||||||
, wingpanelIndicators
|
, wingpanelIndicators
|
||||||
, switchboard-with-plugs
|
, switchboard-with-plugs
|
||||||
@ -15,30 +16,44 @@ let
|
|||||||
if indicators == null then wingpanelIndicators
|
if indicators == null then wingpanelIndicators
|
||||||
else indicators ++ (lib.optionals useDefaultIndicators wingpanelIndicators);
|
else indicators ++ (lib.optionals useDefaultIndicators wingpanelIndicators);
|
||||||
in
|
in
|
||||||
symlinkJoin {
|
stdenv.mkDerivation rec {
|
||||||
name = "${wingpanel.name}-with-indicators";
|
name = "${wingpanel.name}-with-indicators";
|
||||||
|
|
||||||
|
src = null;
|
||||||
|
|
||||||
paths = [
|
paths = [
|
||||||
wingpanel
|
wingpanel
|
||||||
] ++ selectedIndicators;
|
] ++ selectedIndicators;
|
||||||
|
|
||||||
buildInputs = [
|
passAsFile = [ "paths" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
glib
|
glib
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
] ++ (lib.forEach selectedIndicators (x: x.buildInputs))
|
];
|
||||||
|
|
||||||
|
buildInputs = lib.forEach selectedIndicators (x: x.buildInputs)
|
||||||
++ selectedIndicators;
|
++ selectedIndicators;
|
||||||
|
|
||||||
# We have to set SWITCHBOARD_PLUGS_PATH because wingpanel-applications-menu
|
dontUnpack = true;
|
||||||
# has a plugin to search switchboard settings
|
dontConfigure = true;
|
||||||
postBuild = ''
|
dontBuild = true;
|
||||||
make_glib_find_gsettings_schemas
|
|
||||||
|
|
||||||
|
preferLocalBuild = true;
|
||||||
|
allowSubstitutes = false;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
for i in $(cat $pathsPath); do
|
||||||
|
${xorg.lndir}/bin/lndir -silent $i $out
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
gappsWrapperArgs+=(
|
gappsWrapperArgs+=(
|
||||||
--set WINGPANEL_INDICATORS_PATH "$out/lib/wingpanel"
|
--set WINGPANEL_INDICATORS_PATH "$out/lib/wingpanel"
|
||||||
--set SWITCHBOARD_PLUGS_PATH "${switchboard-with-plugs}/lib/switchboard"
|
--set SWITCHBOARD_PLUGS_PATH "${switchboard-with-plugs}/lib/switchboard"
|
||||||
)
|
)
|
||||||
|
|
||||||
wrapGAppsHook
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
inherit (wingpanel) meta;
|
inherit (wingpanel) meta;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user