nixpkgs/pkgs/applications/video/peek/default.nix

98 lines
1.7 KiB
Nix
Raw Normal View History

2022-01-21 15:01:59 +03:00
{ stdenv
, lib
, fetchFromGitHub
2022-01-21 15:01:59 +03:00
, fetchpatch
, nix-update-script
, meson
, ninja
, gettext
, desktop-file-utils
, appstream-glib
, pkg-config
, txt2man
, gzip
, vala
, wrapGAppsHook
, gsettings-desktop-schemas
, gtk3
, glib
, cairo
, keybinder3
, ffmpeg
, python3
, libxml2
, gst_all_1
, which
, gifski
}:
2017-11-28 02:25:21 +03:00
stdenv.mkDerivation rec {
pname = "peek";
2020-02-23 04:22:20 +03:00
version = "1.5.1";
2017-11-28 02:25:21 +03:00
src = fetchFromGitHub {
owner = "phw";
repo = "peek";
2017-11-28 02:25:21 +03:00
rev = version;
2020-02-23 04:22:20 +03:00
sha256 = "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x";
2017-11-28 02:25:21 +03:00
};
2022-01-21 15:01:59 +03: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=";
})
];
nativeBuildInputs = [
appstream-glib
desktop-file-utils
gettext
gzip
meson
ninja
libxml2
pkg-config
txt2man
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
];
postPatch = ''
patchShebangs build-aux/meson/postinstall.py data/man/build_man.sh
'';
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ which ffmpeg gifski ]})
'';
2017-11-28 02:25:21 +03:00
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
2020-02-23 04:22:20 +03:00
homepage = "https://github.com/phw/peek";
2017-11-28 02:25:21 +03:00
description = "Simple animated GIF screen recorder with an easy to use interface";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ puffnfresh ];
platforms = platforms.linux;
2017-11-28 02:25:21 +03:00
};
}