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