mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +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)
80 lines
1.6 KiB
Nix
80 lines
1.6 KiB
Nix
{ fetchFromGitea
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, scdoc
|
|
, gobject-introspection
|
|
, lib
|
|
, libayatana-appindicator
|
|
, libnotify
|
|
, python3Packages
|
|
, procps
|
|
, xset
|
|
, xautolock
|
|
, xscreensaver
|
|
, xfce
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "caffeine-ng";
|
|
version = "4.2.0";
|
|
format = "other";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "WhyNotHugo";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-uYzLRZ+6ZgIwhSuJWRBpLYHgonX7sFXgUZid0V26V0Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ gobject-introspection meson ninja pkg-config wrapGAppsHook3 ];
|
|
|
|
buildInputs = [
|
|
libayatana-appindicator
|
|
libnotify
|
|
];
|
|
|
|
pythonPath = with python3Packages; [
|
|
click
|
|
dbus-python
|
|
ewmh
|
|
pulsectl
|
|
pygobject3
|
|
scdoc
|
|
setproctitle
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
patches = [
|
|
./fix-build.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
echo "${version}" > version
|
|
'';
|
|
|
|
postInstall = ''
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
'';
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix PATH : ${lib.makeBinPath [ procps xautolock xscreensaver xfce.xfconf xset ]}
|
|
)
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
mainProgram = "caffeine";
|
|
maintainers = with maintainers; [ marzipankaiser ];
|
|
description = "Status bar application to temporarily inhibit screensaver and sleep mode";
|
|
homepage = "https://codeberg.org/WhyNotHugo/caffeine-ng";
|
|
changelog = "https://codeberg.org/WhyNotHugo/caffeine-ng/src/tag/v${version}/CHANGELOG.rst";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|