1 { lib, stdenv, fetchurl, makeWrapper, libglvnd, libnotify, jre, zip }:
3 stdenv.mkDerivation rec {
5 pname = "mediathekview";
7 url = "https://download.mediathekview.de/stabil/MediathekView-${version}-linux.tar.gz";
8 sha256 = "sha256-vr0yqKVRodtXalHEIsm5gdEp9wPU9U5nnYhMk7IiPF4=";
12 nativeBuildInputs = [ makeWrapper zip ];
16 libraryPath = lib.strings.makeLibraryPath [ libglvnd libnotify ];
21 mkdir -p $out/{bin,lib}
23 install -m644 MediathekView.jar $out/lib
25 makeWrapper ${jre}/bin/java $out/bin/mediathek \
26 --add-flags "-jar $out/lib/MediathekView.jar" \
27 --suffix LD_LIBRARY_PATH : "${libraryPath}"
29 makeWrapper ${jre}/bin/java $out/bin/MediathekView \
30 --add-flags "-jar $out/lib/MediathekView.jar" \
31 --suffix LD_LIBRARY_PATH : "${libraryPath}"
33 makeWrapper ${jre}/bin/java $out/bin/MediathekView_ipv4 \
34 --add-flags "-Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar" \
35 --suffix LD_LIBRARY_PATH : "${libraryPath}"
41 description = "Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)";
42 homepage = "https://mediathekview.de/";
43 sourceProvenance = with sourceTypes; [ binaryBytecode ];
44 license = licenses.gpl3Plus;
45 mainProgram = "mediathek";
46 maintainers = with maintainers; [ moredread ];
47 platforms = platforms.all;