nixpkgs/pkgs/by-name/pe/peek/package.nix
Silvan Mosberger 84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00

101 lines
1.8 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";
};
}