peek: 1.3.1 -> 1.4.0

* build with meson
* add gstreamer deps
  Needed for recording in GNOME shell
This commit is contained in:
worldofpeace 2019-09-25 02:59:09 -04:00
parent 19b4d18893
commit f5867c346f

View File

@ -1,45 +1,76 @@
{ stdenv, fetchFromGitHub, cmake, gettext, libxml2, pkgconfig, txt2man, vala_0_40, wrapGAppsHook { stdenv
, gsettings-desktop-schemas, gtk3, keybinder3, ffmpeg , 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
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "peek"; pname = "peek";
version = "1.3.1"; version = "1.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "phw"; owner = "phw";
repo = pname; repo = "peek";
rev = version; rev = version;
sha256 = "1fnvlklmg6s5rs3ql74isa5fgdkqqrpsyf8k2spxj520239l4vgb"; sha256 = "0q70hz9anqywqgksd43i8v9ijwy6djyzwnzzd94j44xqwsk9zdbb";
}; };
preConfigure = ''
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]})
'';
nativeBuildInputs = [ nativeBuildInputs = [
cmake appstream-glib
desktop-file-utils
gettext gettext
gzip
meson
ninja
libxml2
pkgconfig pkgconfig
libxml2.bin
txt2man txt2man
vala_0_40 # See https://github.com/NixOS/nixpkgs/issues/58433 python3
vala
wrapGAppsHook wrapGAppsHook
]; ];
buildInputs = [ buildInputs = [
cairo
glib
gsettings-desktop-schemas gsettings-desktop-schemas
gtk3 gtk3
gst_all_1.gstreamer
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-ugly
keybinder3 keybinder3
]; ];
enableParallelBuilding = true; postPatch = ''
patchShebangs build-aux/meson/postinstall.py data/man/build_man.sh
'';
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]})
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/phw/peek; homepage = https://github.com/phw/peek;
description = "Simple animated GIF screen recorder with an easy to use interface"; description = "Simple animated GIF screen recorder with an easy to use interface";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ puffnfresh ]; maintainers = with maintainers; [ puffnfresh worldofpeace ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }