summary refs log tree commit diff
path: root/pkgs/applications/video/k9copy/default.nix
blob: 047f230118557cb8fd80fd22a7236cccc1cd1982 (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
53
54
55
56
{ stdenv, fetchurl
, cmake, automoc4
, dvdauthor, xineLib, libmpeg2, libav, libdvdread, libdvdnav, dvdplusrwtools
, phonon, qtx11extras
, extra-cmake-modules, kio, kiconthemes, ki18n, kdesu, kdoctools, solid
}:

stdenv.mkDerivation rec {
  version = "3.0.3";
  name = "k9copy-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/k9copy-reloaded/${name}.tar.gz";
    sha256 = "0dp06rwihks50c57bbv04d6bj2qc88isl91971r4lii2xp0qn7sg";
  };

  cmakeFlags = [
    "-DQT5_BUILD=ON"
    "-DCMAKE_MINIMUM_REQUIRED_VERSION=3.0"
  ];

  # Hack to disable documentation
  preConfigure = ''
   substituteInPlace ./CMakeLists.txt \
     --replace "add_subdirectory(doc)" ""
  '';

  buildInputs = [
    cmake
    dvdauthor
    xineLib
    libmpeg2
    libav
    libdvdread
    libdvdnav
    dvdplusrwtools
    #automoc4
    phonon
    extra-cmake-modules
    kio
    solid
    qtx11extras
    kiconthemes
    ki18n
    kdesu
  ];
  nativeBuildInputs = [ kdoctools ];

  meta = {
    description = "DVD backup and DVD authoring program";
    homepage = "http://k9copy-reloaded.sourceforge.net/";
    license = stdenv.lib.licenses.gpl2;
    maintainers = with stdenv.lib.maintainers; [ flosse ];
    platforms = stdenv.lib.platforms.unix;
  };
}