2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, which, qtbase, qtwebkit, qtscript, xlibsWrapper
|
2021-06-28 23:13:55 +00:00
|
|
|
, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU, libGL, alsa-lib, freetype
|
2021-02-05 17:12:51 +00:00
|
|
|
, perl, pkg-config , libsamplerate, libbluray, lzo, libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
setSourceRoot = "sourceRoot=$(echo */mythtv)";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freetype qtbase qtwebkit qtscript lame zlib xlibsWrapper libGLU libGL
|
2021-06-28 23:13:55 +00:00
|
|
|
perl libsamplerate libbluray lzo alsa-lib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
|
2020-04-24 23:36:52 +00:00
|
|
|
libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config which yasm libtool autoconf automake file ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|