nixpkgs/pkgs/applications/video/peek/default.nix
worldofpeace c5df3a63e3 peek: add gifski support
This is an optional feature for gif post-processing.
It produces much better quality gif.

Also added which to PATH with the wrapper, as it's
needed to check for these types of programs [0].

[0]: 8b48e8847a/src/utils.vala (L57)
2019-09-25 03:07:07 -04:00

79 lines
1.3 KiB
Nix

{ stdenv
, fetchFromGitHub
, meson
, ninja
, gettext
, desktop-file-utils
, appstream-glib
, pkgconfig
, txt2man
, gzip
, vala
, wrapGAppsHook
, gsettings-desktop-schemas
, gtk3
, glib
, cairo
, keybinder3
, ffmpeg
, python3
, libxml2
, gst_all_1
, which
, gifski
}:
stdenv.mkDerivation rec {
pname = "peek";
version = "1.4.0";
src = fetchFromGitHub {
owner = "phw";
repo = "peek";
rev = version;
sha256 = "0q70hz9anqywqgksd43i8v9ijwy6djyzwnzzd94j44xqwsk9zdbb";
};
nativeBuildInputs = [
appstream-glib
desktop-file-utils
gettext
gzip
meson
ninja
libxml2
pkgconfig
txt2man
python3
vala
wrapGAppsHook
];
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 : ${stdenv.lib.makeBinPath [ which ffmpeg gifski ]})
'';
meta = with stdenv.lib; {
homepage = https://github.com/phw/peek;
description = "Simple animated GIF screen recorder with an easy to use interface";
license = licenses.gpl3;
maintainers = with maintainers; [ puffnfresh worldofpeace ];
platforms = platforms.linux;
};
}