Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
wrapGAppsHook3,
|
|
glib,
|
|
stdenv,
|
|
xorg,
|
|
wingpanel,
|
|
wingpanelIndicators,
|
|
switchboard-with-plugs,
|
|
indicators ? null,
|
|
# Only useful to disable for development testing.
|
|
useDefaultIndicators ? true,
|
|
}:
|
|
|
|
let
|
|
selectedIndicators =
|
|
if indicators == null then
|
|
wingpanelIndicators
|
|
else
|
|
indicators ++ (lib.optionals useDefaultIndicators wingpanelIndicators);
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "${wingpanel.pname}-with-indicators";
|
|
inherit (wingpanel) version;
|
|
|
|
src = null;
|
|
|
|
paths = [
|
|
wingpanel
|
|
]
|
|
++ selectedIndicators;
|
|
|
|
passAsFile = [ "paths" ];
|
|
|
|
nativeBuildInputs = [
|
|
glib
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = lib.forEach selectedIndicators (x: x.buildInputs) ++ selectedIndicators;
|
|
|
|
dontUnpack = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
preferLocalBuild = true;
|
|
allowSubstitutes = false;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
for i in $(cat $pathsPath); do
|
|
${xorg.lndir}/bin/lndir -silent $i $out
|
|
done
|
|
'';
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--set WINGPANEL_INDICATORS_PATH "$out/lib/wingpanel"
|
|
--set SWITCHBOARD_PLUGS_PATH "${switchboard-with-plugs}/lib/switchboard-3"
|
|
)
|
|
'';
|
|
|
|
inherit (wingpanel) meta;
|
|
}
|