nixpkgs/pkgs/applications/video/peek/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
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)
2024-04-27 02:23:22 +02:00

95 lines
1.7 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, nix-update-script
, meson
, ninja
, gettext
, desktop-file-utils
, appstream-glib
, pkg-config
, txt2man
, vala
, wrapGAppsHook3
, gsettings-desktop-schemas
, gtk3
, glib
, cairo
, keybinder3
, ffmpeg-full
, python3
, libxml2
, gst_all_1
, which
, gifski
}:
stdenv.mkDerivation rec {
pname = "peek";
version = "1.5.1";
src = fetchFromGitHub {
owner = "phw";
repo = "peek";
rev = version;
sha256 = "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x";
};
patches = [
# Fix compatibility with GNOME Shell ≥ 40.
# https://github.com/phw/peek/pull/910
(fetchpatch {
url = "https://github.com/phw/peek/commit/008d15316ab5428363c512b263ca8138cb8f52ba.patch";
sha256 = "xxJ+r5uRk93MEzWTFla88ewZsnUl3+YKTenzDygtKP0=";
})
];
nativeBuildInputs = [
appstream-glib
desktop-file-utils
gettext
meson
ninja
libxml2
pkg-config
txt2man
python3
vala
wrapGAppsHook3
];
buildInputs = [
cairo
glib
gsettings-desktop-schemas
gtk3
gst_all_1.gstreamer
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-ugly
keybinder3
];
postPatch = ''
patchShebangs build-aux/meson/postinstall.py data/man/build_man.sh
'';
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ which ffmpeg-full gifski ]})
'';
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
homepage = "https://github.com/phw/peek";
description = "Simple animated GIF screen recorder with an easy to use interface";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ puffnfresh ];
platforms = platforms.linux;
mainProgram = "peek";
};
}