2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-09-25 08:59:09 +02:00
|
|
|
, 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
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config
|
2019-09-25 08:59:09 +02:00
|
|
|
, txt2man
|
|
|
|
, gzip
|
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, keybinder3
|
2021-05-05 17:42:05 +02:00
|
|
|
, ffmpeg
|
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
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2019-03-30 19:09:31 +01:00
|
|
|
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 = ''
|
2021-05-05 17:42:05 +02:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ which ffmpeg 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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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";
|
2021-05-05 17:42:05 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2021-05-05 11:25:45 +02:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
2019-09-25 08:59:09 +02:00
|
|
|
platforms = platforms.linux;
|
2017-11-28 00:25:21 +01:00
|
|
|
};
|
|
|
|
}
|