2021-01-25 09:26:54 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, which, qtbase, qtwebkit, qtscript, xlibsWrapper
|
2021-06-10 04:57:09 +02:00
|
|
|
, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU, libGL, alsa-lib, freetype
|
2021-01-17 03:09:27 +01:00
|
|
|
, perl, pkg-config , libsamplerate, libbluray, lzo, libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm
|
2019-10-12 00:59:25 +02:00
|
|
|
, libXmu , yasm, libuuid, taglib, libtool, autoconf, automake, file, exiv2, linuxHeaders
|
2006-10-17 10:00:50 +02:00
|
|
|
}:
|
2005-01-20 22:11:49 +01:00
|
|
|
|
2019-10-12 00:59:25 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mythtv";
|
2020-07-30 00:14:13 +02:00
|
|
|
version = "31.0";
|
2005-01-22 01:19:27 +01:00
|
|
|
|
2018-03-18 23:38:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MythTV";
|
|
|
|
repo = "mythtv";
|
|
|
|
rev = "v${version}";
|
2020-07-30 00:14:13 +02:00
|
|
|
sha256 = "092w5kvc1gjz6jd2lk2jhcazasz2h3xh0i5iq80k8x3znyp4i6v5";
|
2005-01-20 22:11:49 +01:00
|
|
|
};
|
|
|
|
|
2019-06-27 06:46:59 +02:00
|
|
|
patches = [
|
2020-07-30 00:14:13 +02:00
|
|
|
# Disables OS detection used while checking if enforce_wshadow should be disabled.
|
2019-10-12 00:59:25 +02:00
|
|
|
./disable-os-detection.patch
|
2019-06-27 06:46:59 +02:00
|
|
|
];
|
|
|
|
|
2021-01-24 10:19:10 +01:00
|
|
|
setSourceRoot = "sourceRoot=$(echo */mythtv)";
|
2014-11-02 21:06:40 +01:00
|
|
|
|
2006-09-14 15:24:06 +02:00
|
|
|
buildInputs = [
|
2019-11-10 17:44:34 +01:00
|
|
|
freetype qtbase qtwebkit qtscript lame zlib xlibsWrapper libGLU libGL
|
2021-06-10 04:57:09 +02:00
|
|
|
perl libsamplerate libbluray lzo alsa-lib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
|
2018-03-18 23:38:07 +01:00
|
|
|
libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2
|
2020-07-30 00:14:13 +02:00
|
|
|
];
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config which yasm libtool autoconf automake file ];
|
2012-03-16 23:26:26 +01:00
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
configureFlags =
|
2020-07-30 00:14:13 +02:00
|
|
|
[ "--dvb-path=${linuxHeaders}/include" ];
|
2018-03-18 23:38:07 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.mythtv.org/";
|
2014-11-02 21:06:40 +01:00
|
|
|
description = "Open Source DVR";
|
2020-07-30 00:14:13 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2017-12-05 23:20:11 +01:00
|
|
|
platforms = platforms.linux;
|
2014-11-02 21:06:40 +01:00
|
|
|
maintainers = [ maintainers.titanous ];
|
|
|
|
};
|
2005-01-20 22:11:49 +01:00
|
|
|
}
|