9 , panelModulePackages ? [ ]
13 # We always want to find the built-in panel applets.
14 selectedPanelModulePackages = [ gnome-panel gnome-flashback ] ++ panelModulePackages;
16 panelModulesEnv = buildEnv {
17 name = "gnome-panel-modules-env";
18 paths = selectedPanelModulePackages;
19 pathsToLink = [ "/lib/gnome-panel/modules" ];
23 pname = "${gnome-panel.pname}-with-modules";
24 inherit (gnome-panel) version;
31 buildInputs = selectedPanelModulePackages ++
32 lib.forEach selectedPanelModulePackages (x: x.buildInputs or [ ]);
38 preferLocalBuild = true;
39 allowSubstitutes = false;
45 ${xorg.lndir}/bin/lndir -silent ${gnome-panel} $out
47 rm -r $out/lib/gnome-panel/modules
48 ${xorg.lndir}/bin/lndir -silent ${panelModulesEnv} $out
50 rm $out/share/applications/gnome-panel.desktop
52 substitute ${gnome-panel}/share/applications/gnome-panel.desktop \
53 $out/share/applications/gnome-panel.desktop --replace \
54 "Exec=${gnome-panel}/bin/gnome-panel" "Exec=$out/bin/gnome-panel"
61 --set NIX_GNOME_PANEL_MODULESDIR "$out/lib/gnome-panel/modules"
65 meta = gnome-panel.meta // { outputsToInstall = [ "out" ]; };