2022-12-02 08:20:57 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, fetchpatch, which, qtbase, qtwebkit, qtscript
|
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
|
2022-12-02 08:20:57 +00:00
|
|
|
, libXmu , yasm, libuuid, taglib, libtool, autoconf, automake, file, exiv2, linuxHeaders, soundtouch, libzip
|
|
|
|
, withWebKit ? false
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mythtv";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "32.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MythTV";
|
|
|
|
repo = "mythtv";
|
|
|
|
rev = "v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "0i4fs3rbk1jggh62wflpa2l03na9i1ihpz2vsdic9vfahqqjxff1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2022-12-02 08:20:57 +00:00
|
|
|
# Disable sourcing /etc/os-release
|
|
|
|
./dont-source-os-release.patch
|
|
|
|
|
|
|
|
# Fix QMake variable substitution syntax - MythTV/mythtv#550
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-qmake-var-syntax.patch";
|
|
|
|
url = "https://github.com/MythTV/mythtv/commit/a8da7f7e7ec069164adbef65a8104adc9bb52e36.patch";
|
|
|
|
stripLen = 1;
|
|
|
|
hash = "sha256-JfRME00YNNjl6SKs1HBa0wBa/lR/Rt3zbQtWhsC36JM=";
|
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
setSourceRoot = "sourceRoot=$(echo */mythtv)";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
freetype qtbase qtscript lame zlib libGLU libGL
|
2021-06-28 23:13:55 +00:00
|
|
|
perl libsamplerate libbluray lzo alsa-lib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
|
2022-12-02 08:20:57 +00:00
|
|
|
libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2 soundtouch libzip
|
|
|
|
] ++ lib.optional withWebKit qtwebkit;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|