summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-09-25 02:59:09 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-09-25 02:59:09 -0400
commitf5867c346f90a4a9a67b3a72cdad8789e8f36716 (patch)
tree042d3c5b18cfba97c521084912c00fa49fcb0711 /pkgs/applications/video
parent19b4d18893c507ebb8c0dc90ce72ec59773f96e6 (diff)
downloadnixpkgs-f5867c346f90a4a9a67b3a72cdad8789e8f36716.tar
nixpkgs-f5867c346f90a4a9a67b3a72cdad8789e8f36716.tar.gz
nixpkgs-f5867c346f90a4a9a67b3a72cdad8789e8f36716.tar.bz2
nixpkgs-f5867c346f90a4a9a67b3a72cdad8789e8f36716.tar.lz
nixpkgs-f5867c346f90a4a9a67b3a72cdad8789e8f36716.tar.xz
nixpkgs-f5867c346f90a4a9a67b3a72cdad8789e8f36716.tar.zst
nixpkgs-f5867c346f90a4a9a67b3a72cdad8789e8f36716.zip
peek: 1.3.1 -> 1.4.0
* build with meson
* add gstreamer deps
  Needed for recording in GNOME shell
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/peek/default.nix65
1 files changed, 48 insertions, 17 deletions
diff --git a/pkgs/applications/video/peek/default.nix b/pkgs/applications/video/peek/default.nix
index 374ea08816f..973df7363a2 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;
   };
 }