diff --git a/pkgs/applications/video/mythtv/default.nix b/pkgs/applications/video/mythtv/default.nix index a4fe07b2d053..2bc635d510eb 100644 --- a/pkgs/applications/video/mythtv/default.nix +++ b/pkgs/applications/video/mythtv/default.nix @@ -1,22 +1,32 @@ { stdenv, fetchurl, which, qt4, x11, pulseaudio, fftwSinglePrec , lame, zlib, mesa, alsaLib, freetype, perl, pkgconfig , libX11, libXv, libXrandr, libXvMC, libXinerama, libXxf86vm, libXmu +, yasm, libuuid, taglib, libtool, autoconf, automake, file }: stdenv.mkDerivation rec { - name = "mythtv-0.24.2"; + name = "mythtv-${version}"; + version = "0.27.4"; src = fetchurl { - url = "http://ftp.osuosl.org/pub/mythtv/${name}.tar.bz2"; - sha256 = "14mkyf2b26pc9spx6lg15mml0nqyg1r3qnq8m9dz3110h771y2db"; + url = "https://github.com/MythTV/mythtv/archive/v${version}.tar.gz"; + sha256 = "0nrn4fbkkzh43n7jgbv21i92sb4z4yacwj9yj6m3hjbffzy4ywqz"; }; + sourceRoot = "${name}/mythtv"; + buildInputs = [ freetype qt4 lame zlib x11 mesa perl alsaLib pulseaudio fftwSinglePrec libX11 libXv libXrandr libXvMC libXmu libXinerama libXxf86vm libXmu + libuuid taglib ]; + nativeBuildInputs = [ pkgconfig which yasm libtool autoconf automake file ]; - nativeBuildInputs = [ pkgconfig which ]; - - patches = [ ./settings.patch ]; + meta = with stdenv.lib; { + homepage = "https://www.mythtv.org/"; + description = "Open Source DVR"; + license = licenses.gpl2; + meta.platforms = platforms.linux; + maintainers = [ maintainers.titanous ]; + }; } diff --git a/pkgs/applications/video/mythtv/settings.patch b/pkgs/applications/video/mythtv/settings.patch deleted file mode 100644 index ec1e70097921..000000000000 --- a/pkgs/applications/video/mythtv/settings.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/Makefile b/Makefile -index 05db819..383036d 100644 ---- a/Makefile -+++ b/Makefile -@@ -53,7 +53,7 @@ i18n/Makefile: i18n/i18n.pro - locales/Makefile: locales/locales.pro - - $(addsuffix /Makefile,$(QT_SUBDIRS)): %/Makefile : -- cd $*; $(QMAKE) QMAKE=$(QMAKE) -o $(@F) $(