2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, which, qtbase, qtwebkit, qtscript, xlibsWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU, libGL, alsaLib, freetype
|
|
|
|
, perl, pkgconfig , libsamplerate, libbluray, lzo, libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm
|
|
|
|
, libXmu , yasm, libuuid, taglib, libtool, autoconf, automake, file, exiv2, linuxHeaders
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mythtv";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "31.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MythTV";
|
|
|
|
repo = "mythtv";
|
|
|
|
rev = "v${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "092w5kvc1gjz6jd2lk2jhcazasz2h3xh0i5iq80k8x3znyp4i6v5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2020-08-20 17:08:02 +00:00
|
|
|
# Disables OS detection used while checking if enforce_wshadow should be disabled.
|
2020-04-24 23:36:52 +00:00
|
|
|
./disable-os-detection.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
setSourceRoot = ''sourceRoot=$(echo */mythtv)'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freetype qtbase qtwebkit qtscript lame zlib xlibsWrapper libGLU libGL
|
|
|
|
perl libsamplerate libbluray lzo alsaLib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
|
|
|
|
libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig which yasm libtool autoconf automake file ];
|
|
|
|
|
|
|
|
configureFlags =
|
2020-08-20 17:08:02 +00:00
|
|
|
[ "--dvb-path=${linuxHeaders}/include" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.mythtv.org/";
|
|
|
|
description = "Open Source DVR";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.titanous ];
|
|
|
|
};
|
|
|
|
}
|