2019-09-25 07:59:09 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
|
|
|
, pkgconfig
|
|
|
|
, txt2man
|
|
|
|
, gzip
|
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, keybinder3
|
2020-06-07 13:39:09 +01:00
|
|
|
, ffmpeg_3
|
2019-09-25 07:59:09 +01:00
|
|
|
, python3
|
|
|
|
, libxml2
|
|
|
|
, gst_all_1
|
2019-09-25 08:07:07 +01:00
|
|
|
, which
|
|
|
|
, gifski
|
2017-11-29 07:50:40 +00:00
|
|
|
}:
|
2017-11-27 23:25:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-30 18:09:31 +00:00
|
|
|
pname = "peek";
|
2020-02-23 01:22:20 +00:00
|
|
|
version = "1.5.1";
|
2017-11-27 23:25:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phw";
|
2019-09-25 07:59:09 +01:00
|
|
|
repo = "peek";
|
2017-11-27 23:25:21 +00:00
|
|
|
rev = version;
|
2020-02-23 01:22:20 +00:00
|
|
|
sha256 = "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x";
|
2017-11-27 23:25:21 +00:00
|
|
|
};
|
|
|
|
|
2019-03-30 18:09:31 +00:00
|
|
|
nativeBuildInputs = [
|
2019-09-25 07:59:09 +01:00
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
2019-03-30 18:09:31 +00:00
|
|
|
gettext
|
2019-09-25 07:59:09 +01:00
|
|
|
gzip
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
libxml2
|
2019-03-30 18:09:31 +00:00
|
|
|
pkgconfig
|
|
|
|
txt2man
|
2019-09-25 07:59:09 +01:00
|
|
|
python3
|
|
|
|
vala
|
2019-03-30 18:09:31 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2017-11-29 07:50:40 +00:00
|
|
|
|
2019-03-30 18:09:31 +00:00
|
|
|
buildInputs = [
|
2019-09-25 07:59:09 +01:00
|
|
|
cairo
|
|
|
|
glib
|
2019-03-30 18:09:31 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
2019-09-25 07:59:09 +01:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-ugly
|
2019-03-30 18:09:31 +00:00
|
|
|
keybinder3
|
|
|
|
];
|
2017-11-29 07:50:40 +00:00
|
|
|
|
2019-09-25 07:59:09 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py data/man/build_man.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2020-06-07 13:39:09 +01:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ which ffmpeg_3 gifski ]})
|
2019-09-25 07:59:09 +01:00
|
|
|
'';
|
2017-11-27 23:25:21 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-02-23 01:22:20 +00:00
|
|
|
homepage = "https://github.com/phw/peek";
|
2017-11-27 23:25:21 +00:00
|
|
|
description = "Simple animated GIF screen recorder with an easy to use interface";
|
2019-09-25 07:59:09 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ puffnfresh worldofpeace ];
|
|
|
|
platforms = platforms.linux;
|
2017-11-27 23:25:21 +00:00
|
|
|
};
|
|
|
|
}
|