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)
This commit is contained in:
worldofpeace 2019-09-25 03:07:07 -04:00
parent f9edafb796
commit c5df3a63e3

View File

@ -19,6 +19,8 @@
, python3 , python3
, libxml2 , libxml2
, gst_all_1 , gst_all_1
, which
, gifski
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -63,7 +65,7 @@ stdenv.mkDerivation rec {
''; '';
preFixup = '' preFixup = ''
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]}) gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ which ffmpeg gifski ]})
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {