summary refs log tree commit diff
path: root/pkgs/applications/video/peek/default.nix
blob: 374ea08816f7996e10ef3e5a8356f809f197f639 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ stdenv, fetchFromGitHub, cmake, gettext, libxml2, pkgconfig, txt2man, vala_0_40, wrapGAppsHook
, gsettings-desktop-schemas, gtk3, keybinder3, ffmpeg
}:

stdenv.mkDerivation rec {
  pname = "peek";
  version = "1.3.1";

  src = fetchFromGitHub {
    owner = "phw";
    repo = pname;
    rev = version;
    sha256 = "1fnvlklmg6s5rs3ql74isa5fgdkqqrpsyf8k2spxj520239l4vgb";
  };

  preConfigure = ''
    gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]})
  '';

  nativeBuildInputs = [
    cmake
    gettext
    pkgconfig
    libxml2.bin
    txt2man
    vala_0_40 # See https://github.com/NixOS/nixpkgs/issues/58433
    wrapGAppsHook
  ];

  buildInputs = [
    gsettings-desktop-schemas
    gtk3
    keybinder3
  ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    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;
  };
}