diff --git a/pkgs/applications/video/peek/default.nix b/pkgs/applications/video/peek/default.nix index 374ea08816f7..973df7363a26 100644 --- a/pkgs/applications/video/peek/default.nix +++ b/pkgs/applications/video/peek/default.nix @@ -1,45 +1,76 @@ -{ stdenv, fetchFromGitHub, cmake, gettext, libxml2, pkgconfig, txt2man, vala_0_40, wrapGAppsHook -, gsettings-desktop-schemas, gtk3, keybinder3, ffmpeg +{ stdenv +, fetchFromGitHub +, meson +, ninja +, gettext +, desktop-file-utils +, appstream-glib +, pkgconfig +, txt2man +, gzip +, vala +, wrapGAppsHook +, gsettings-desktop-schemas +, gtk3 +, glib +, cairo +, keybinder3 +, ffmpeg +, python3 +, libxml2 +, gst_all_1 }: stdenv.mkDerivation rec { pname = "peek"; - version = "1.3.1"; + version = "1.4.0"; src = fetchFromGitHub { owner = "phw"; - repo = pname; + repo = "peek"; rev = version; - sha256 = "1fnvlklmg6s5rs3ql74isa5fgdkqqrpsyf8k2spxj520239l4vgb"; + sha256 = "0q70hz9anqywqgksd43i8v9ijwy6djyzwnzzd94j44xqwsk9zdbb"; }; - preConfigure = '' - gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]}) - ''; - nativeBuildInputs = [ - cmake + appstream-glib + desktop-file-utils gettext + gzip + meson + ninja + libxml2 pkgconfig - libxml2.bin txt2man - vala_0_40 # See https://github.com/NixOS/nixpkgs/issues/58433 + 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 ]; - enableParallelBuilding = true; + postPatch = '' + patchShebangs build-aux/meson/postinstall.py data/man/build_man.sh + ''; + + preFixup = '' + gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]}) + ''; meta = with stdenv.lib; { - homepage = https://github.com/phw/peek; + homepage = https://github.com/phw/peek; description = "Simple animated GIF screen recorder with an easy to use interface"; - license = licenses.gpl3; - maintainers = with maintainers; [ puffnfresh ]; - platforms = platforms.linux; + license = licenses.gpl3; + maintainers = with maintainers; [ puffnfresh worldofpeace ]; + platforms = platforms.linux; }; }