forked from mirrors/nixpkgs
peek: 1.3.1 -> 1.4.0
* build with meson * add gstreamer deps Needed for recording in GNOME shell
This commit is contained in:
parent
19b4d18893
commit
f5867c346f
|
@ -1,45 +1,76 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, gettext, libxml2, pkgconfig, txt2man, vala_0_40, wrapGAppsHook
|
||||
, gsettings-desktop-schemas, gtk3, keybinder3, ffmpeg
|
||||
{ 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
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "peek";
|
||||
version = "1.3.1";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "phw";
|
||||
repo = pname;
|
||||
repo = "peek";
|
||||
rev = version;
|
||||
sha256 = "1fnvlklmg6s5rs3ql74isa5fgdkqqrpsyf8k2spxj520239l4vgb";
|
||||
sha256 = "0q70hz9anqywqgksd43i8v9ijwy6djyzwnzzd94j44xqwsk9zdbb";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]})
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
appstream-glib
|
||||
desktop-file-utils
|
||||
gettext
|
||||
gzip
|
||||
meson
|
||||
ninja
|
||||
libxml2
|
||||
pkgconfig
|
||||
libxml2.bin
|
||||
txt2man
|
||||
vala_0_40 # See https://github.com/NixOS/nixpkgs/issues/58433
|
||||
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
|
||||
];
|
||||
|
||||
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; {
|
||||
homepage = https://github.com/phw/peek;
|
||||
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 ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ puffnfresh worldofpeace ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue