2022-01-21 12:01:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-09-25 07:59:09 +01:00
|
|
|
, fetchFromGitHub
|
2022-01-21 12:01:59 +00:00
|
|
|
, fetchpatch
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-09-25 07:59:09 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-09-25 07:59:09 +01:00
|
|
|
, txt2man
|
|
|
|
, gzip
|
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, keybinder3
|
2021-05-05 16:42:05 +01:00
|
|
|
, ffmpeg
|
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
|
|
|
};
|
|
|
|
|
2022-01-21 12:01:59 +00:00
|
|
|
patches = [
|
|
|
|
# Fix compatibility with GNOME Shell ≥ 40.
|
|
|
|
# https://github.com/phw/peek/pull/910
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/phw/peek/commit/008d15316ab5428363c512b263ca8138cb8f52ba.patch";
|
|
|
|
sha256 = "xxJ+r5uRk93MEzWTFla88ewZsnUl3+YKTenzDygtKP0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2019-03-30 18:09:31 +00:00
|
|
|
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 = ''
|
2021-05-05 16:42:05 +01:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ which ffmpeg gifski ]})
|
2019-09-25 07:59:09 +01:00
|
|
|
'';
|
2017-11-27 23:25:21 +00:00
|
|
|
|
2020-07-29 17:33:39 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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";
|
2021-05-05 16:42:05 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2021-05-05 10:25:45 +01:00
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
2019-09-25 07:59:09 +01:00
|
|
|
platforms = platforms.linux;
|
2017-11-27 23:25:21 +00:00
|
|
|
};
|
|
|
|
}
|