summary refs log tree commit diff
path: root/pkgs/applications/video/mythtv/default.nix
blob: 6ca6651c5717f4a6fb13cb2565f18d4b039601a9 (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
{ stdenv, fetchurl, which, qt3, x11, xlibs
, lame, zlib, mesa, alsaLib
, freetype, perl
}:

assert qt3.mysqlSupport;

stdenv.mkDerivation {
  name = "mythtv-0.21";

  builder = ./builder.sh;
  
  src = fetchurl {
    url = http://ftp.osuosl.org/pub/mythtv/mythtv-0.21.tar.bz2;
    sha256 = "1r654fvklpsf6h9iqckb8fhd7abgs71lx6xh352xgz9yzjl7ia1k";
  };

  #configureFlags = "--x11-path=/no-such-path --dvb-path=/no-such-path";

  configureFlags = ''
    --disable-joystick-menu --disable-dvb
  '';

  buildInputs = [
    freetype qt3 lame zlib x11 mesa perl alsaLib
    xlibs.libX11 xlibs.libXv xlibs.libXrandr xlibs.libXvMC xlibs.libXmu
    xlibs.libXinerama xlibs.libXxf86vm xlibs.libXmu
  ];
  
  patches = [
    ./settings.patch
    ./purity.patch # don't search in /usr/include etc.
  ];
}