mediathekview: 9 -> 13.2.1

Use OracleJRE for now, as OpenJFX isn't packaged yet for OpenJDK.
This commit is contained in:
André-Patrick Bubel 2019-01-19 13:23:23 +01:00
parent d79e351079
commit 88098b14d4
No known key found for this signature in database
GPG Key ID: 28925CBA8869FF29
2 changed files with 25 additions and 23 deletions

View File

@ -1,31 +1,31 @@
{ stdenv, fetchurl, jre, unzip }: { stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "mediathekview-9"; version = "13.2.1";
name = "mediathekview-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/zdfmediathk/MediathekView_9.zip"; url = "https://download.mediathekview.de/stabil/MediathekView-${version}.tar.gz";
sha256 = "1wff0igr33z9p1mjw7yvb6658smdwnp22dv8klz0y8qg116wx7a4"; sha256 = "11wg6klviig0h7pprfaygamsgqr7drqra2s4yxgfak6665033l2a";
}; };
unpackPhase = "true";
buildInputs = [ unzip ]; nativeBuildInputs = [ makeWrapper ];
# Could use some more love
# Maybe we can also preconfigure locations for vlc and the others.
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/{lib,bin,share/mediathekview}
mkdir -p $out/opt/mediathekview
cd $out/opt/mediathekview install -m644 MediathekView.jar $out/
unzip $src install -m644 -t $out/lib lib/*
find . -iname '*.exe' -delete install -m755 bin/flv.sh $out/share/mediathekview
sed -i -e 's, java, ${jre}/bin/java,' MediathekView__Linux.sh
ln -s $out/opt/mediathekview/MediathekView__Linux.sh $out/bin/mediathekview makeWrapper ${jre}/bin/java $out/bin/mediathek \
''; --add-flags "-cp '$out/lib/*' -jar $out/MediathekView.jar"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://zdfmediathk.sourceforge.net/; description = "Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)";
license = stdenv.lib.licenses.gpl3; homepage = https://mediathekview.de/;
maintainers = [ maintainers.chaoflow ]; license = licenses.gpl3;
platforms = platforms.linux; # also macOS and cygwin, but not investigated, yet maintainers = with maintainers; [ chaoflow moredread ];
platforms = platforms.all;
}; };
} }

View File

@ -18129,7 +18129,9 @@ in
mediainfo-gui = callPackage ../applications/misc/mediainfo-gui { }; mediainfo-gui = callPackage ../applications/misc/mediainfo-gui { };
mediathekview = callPackage ../applications/video/mediathekview { }; # mediathekview needs JavaFX, which currently only is available inside OracleJRE
# we might be able to get rid of it, as soon as we have an OpenJRE with OpenJFX included
mediathekview = callPackage ../applications/video/mediathekview { jre = oraclejre; };
meteo = callPackage ../applications/networking/weather/meteo { }; meteo = callPackage ../applications/networking/weather/meteo { };