2019-10-11 23:59:25 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, which, qtbase, qtwebkit, qtscript, xlibsWrapper
|
2019-11-10 16:44:34 +00:00
|
|
|
, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU, libGL, alsaLib, freetype
|
2019-10-11 23:59:25 +01:00
|
|
|
, perl, pkgconfig , libsamplerate, libbluray, lzo, libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm
|
|
|
|
, libXmu , yasm, libuuid, taglib, libtool, autoconf, automake, file, exiv2, linuxHeaders
|
|
|
|
, libXNVCtrl, enableXnvctrl ? false
|
2006-10-17 09:00:50 +01:00
|
|
|
}:
|
2005-01-20 21:11:49 +00:00
|
|
|
|
2019-10-11 23:59:25 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mythtv";
|
2019-10-11 23:59:25 +01:00
|
|
|
version = "30.0";
|
2005-01-22 00:19:27 +00:00
|
|
|
|
2018-03-18 22:38:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MythTV";
|
|
|
|
repo = "mythtv";
|
|
|
|
rev = "v${version}";
|
2019-10-11 23:59:25 +01:00
|
|
|
sha256 = "1pfzjb07xwd3mfgmbr4kkiyfyvwy9fkl13ik7bvqds86m0ws5bw4";
|
2005-01-20 21:11:49 +00:00
|
|
|
};
|
|
|
|
|
2019-06-27 05:46:59 +01:00
|
|
|
patches = [
|
|
|
|
# Fixes build with exiv2 0.27.1.
|
2019-10-11 23:59:25 +01:00
|
|
|
./exiv2.patch
|
|
|
|
# Disables OS detection used while checking for xnvctrl support.
|
|
|
|
./disable-os-detection.patch
|
2019-06-27 05:46:59 +01:00
|
|
|
];
|
|
|
|
|
2018-03-18 22:38:07 +00:00
|
|
|
setSourceRoot = ''sourceRoot=$(echo */mythtv)'';
|
2014-11-02 20:06:40 +00:00
|
|
|
|
2006-09-14 14:24:06 +01:00
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
freetype qtbase qtwebkit qtscript lame zlib xlibsWrapper libGLU libGL
|
2019-10-11 23:59:25 +01:00
|
|
|
perl libsamplerate libbluray lzo alsaLib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
|
2018-03-18 22:38:07 +00:00
|
|
|
libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2
|
2019-10-11 23:59:25 +01:00
|
|
|
] ++ stdenv.lib.optional enableXnvctrl libXNVCtrl;
|
2014-11-02 20:06:40 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig which yasm libtool autoconf automake file ];
|
2012-03-16 22:26:26 +00:00
|
|
|
|
2019-10-11 23:59:25 +01:00
|
|
|
configureFlags =
|
|
|
|
[ "--dvb-path=${linuxHeaders}/include" ]
|
|
|
|
++ stdenv.lib.optionals (!enableXnvctrl) [ "--disable-xnvctrl" ];
|
2018-03-18 22:38:07 +00:00
|
|
|
|
2014-11-02 20:06:40 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://www.mythtv.org/;
|
2014-11-02 20:06:40 +00:00
|
|
|
description = "Open Source DVR";
|
|
|
|
license = licenses.gpl2;
|
2017-12-05 22:20:11 +00:00
|
|
|
platforms = platforms.linux;
|
2014-11-02 20:06:40 +00:00
|
|
|
maintainers = [ maintainers.titanous ];
|
|
|
|
};
|
2005-01-20 21:11:49 +00:00
|
|
|
}
|