about summary refs log tree commit diff
path: root/pkgs/applications/video/kaffeine/default.nix
blob: c2866e280f126a9bfc33e549e9007d162ae03f7e (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
46
47
48
49
50
51
52
{ stdenv
, lib
, fetchFromGitLab
, cmake
, extra-cmake-modules
, libvlc
, libv4l
, libX11
, kidletime
, kdelibs4support
, libXScrnSaver
, wrapQtAppsHook
, qtx11extras
}:

stdenv.mkDerivation rec {
  pname = "kaffeine";
  version = "2.0.18";

  src = fetchFromGitLab {
    domain = "invent.kde.org";
    repo = pname;
    owner = "Multimedia";
    rev = "v${version}";
    hash = "sha256-FOaS9gkzkHglbsNBNMwjzbHCNQg3Mbf+9so/Vfbaquc=";
  };

  nativeBuildInputs = [
    cmake
    extra-cmake-modules
    wrapQtAppsHook
  ];

  buildInputs = [
    libvlc
    libv4l
    libX11
    kidletime
    qtx11extras
    kdelibs4support
    libXScrnSaver
  ];

  meta = with lib; {
    description = "KDE media player";
    homepage = "https://apps.kde.org/kaffeine/";
    license = licenses.gpl2;
    maintainers = [ maintainers.pasqui23 ];
    platforms = platforms.all;
    mainProgram = "kaffeine";
  };
}