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

43 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, mkDerivation, fetchFromGitHub, which, qtbase, qtwebkit, qtscript, xlibsWrapper
2019-11-10 16:44:34 +00:00
, libpulseaudio, fftwSinglePrec , lame, zlib, libGLU, libGL, alsaLib, freetype
, perl, pkg-config , libsamplerate, libbluray, lzo, libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm
2019-10-11 22:59:25 +00:00
, libXmu , yasm, libuuid, taglib, libtool, autoconf, automake, file, exiv2, linuxHeaders
}:
2019-10-11 22:59:25 +00:00
mkDerivation rec {
pname = "mythtv";
2020-07-29 22:14:13 +00:00
version = "31.0";
2018-03-18 22:38:07 +00:00
src = fetchFromGitHub {
owner = "MythTV";
repo = "mythtv";
rev = "v${version}";
2020-07-29 22:14:13 +00:00
sha256 = "092w5kvc1gjz6jd2lk2jhcazasz2h3xh0i5iq80k8x3znyp4i6v5";
};
2019-06-27 04:46:59 +00:00
patches = [
2020-07-29 22:14:13 +00:00
# Disables OS detection used while checking if enforce_wshadow should be disabled.
2019-10-11 22:59:25 +00:00
./disable-os-detection.patch
2019-06-27 04:46:59 +00:00
];
2018-03-18 22:38:07 +00:00
setSourceRoot = ''sourceRoot=$(echo */mythtv)'';
2014-11-02 20:06:40 +00:00
buildInputs = [
2019-11-10 16:44:34 +00:00
freetype qtbase qtwebkit qtscript lame zlib xlibsWrapper libGLU libGL
2019-10-11 22:59:25 +00:00
perl libsamplerate libbluray lzo alsaLib libpulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC
2018-03-18 22:38:07 +00:00
libXmu libXinerama libXxf86vm libXmu libuuid taglib exiv2
2020-07-29 22:14:13 +00:00
];
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 ];
};
}