nixpkgs/pkgs/applications/video/mythtv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub, fetchpatch, which, qtbase, qtwebkit, qtscript
, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU, libGL, alsa-lib, freetype
, perl, pkg-config , libsamplerate, libbluray, lzo, libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm
2023-01-24 01:22:59 +00:00
, libXmu , yasm, libuuid, taglib, libtool, autoconf, automake, file, exiv2, linuxHeaders
, soundtouch, libzip, libhdhomerun
, withWebKit ? false
}:
2019-10-11 22:59:25 +00:00
mkDerivation rec {
pname = "mythtv";
version = "32.0";
2018-03-18 22:38:07 +00:00
src = fetchFromGitHub {
owner = "MythTV";
repo = "mythtv";
rev = "v${version}";
sha256 = "0i4fs3rbk1jggh62wflpa2l03na9i1ihpz2vsdic9vfahqqjxff1";
};
2019-06-27 04:46:59 +00:00
patches = [
# 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=";
})
2019-06-27 04:46:59 +00:00
];
setSourceRoot = "sourceRoot=$(echo */mythtv)";
2014-11-02 20:06:40 +00:00
buildInputs = [
freetype qtbase qtscript lame zlib libGLU libGL
perl libsamplerate libbluray lzo alsa-lib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2 soundtouch libzip
2023-01-24 01:22:59 +00:00
libhdhomerun
] ++ lib.optional withWebKit qtwebkit;
nativeBuildInputs = [ pkg-config which yasm libtool autoconf automake file ];
configureFlags =
2020-07-29 22:14:13 +00:00
[ "--dvb-path=${linuxHeaders}/include" ];
2018-03-18 22:38:07 +00:00
meta = with lib; {
homepage = "https://www.mythtv.org/";
2014-11-02 20:06:40 +00:00
description = "Open Source DVR";
2020-07-29 22:14:13 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
2014-11-02 20:06:40 +00:00
maintainers = [ maintainers.titanous ];
};
}