mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, glib
|
|
, wrapGAppsHook3
|
|
, xorg
|
|
, marco
|
|
, mate-panel
|
|
, panelApplets
|
|
, applets ? [ ]
|
|
, useDefaultApplets ? true
|
|
}:
|
|
|
|
let
|
|
selectedApplets = applets ++ (lib.optionals useDefaultApplets panelApplets);
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "${mate-panel.pname}-with-applets";
|
|
version = mate-panel.version;
|
|
|
|
src = null;
|
|
|
|
paths = [ mate-panel ] ++ selectedApplets;
|
|
passAsFile = [ "paths" ];
|
|
|
|
nativeBuildInputs = [
|
|
glib
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = lib.forEach selectedApplets (x: x.buildInputs) ++ selectedApplets
|
|
++ [ mate-panel ] ++ mate-panel.buildInputs ++ mate-panel.propagatedBuildInputs;
|
|
|
|
dontUnpack = true;
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
preferLocalBuild = true;
|
|
allowSubstitutes = false;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
for i in $(cat $pathsPath); do
|
|
${xorg.lndir}/bin/lndir -silent $i $out
|
|
done
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--set MATE_PANEL_APPLETS_DIR "$out/share/mate-panel/applets"
|
|
--set MATE_PANEL_EXTRA_MODULES "$out/lib/mate-panel/applets"
|
|
# Workspace switcher settings
|
|
--prefix XDG_DATA_DIRS : "${glib.getSchemaDataDirPath marco}"
|
|
)
|
|
'';
|
|
|
|
inherit (mate-panel.meta);
|
|
}
|