2022-10-21 18:38:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, libglvnd, libnotify, jre, zip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "13.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mediathekview";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.mediathekview.de/stabil/MediathekView-${version}-linux.tar.gz";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "4BYKkYhl1YjiAZyfNRdV5KQL+dVkL058uhTG892mXUM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper zip ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
libraryPath = lib.strings.makeLibraryPath [ libglvnd libnotify ];
|
|
|
|
in
|
|
|
|
''
|
2021-10-04 12:37:57 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/{bin,lib}
|
|
|
|
|
|
|
|
install -m644 MediathekView.jar $out/lib
|
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/mediathek \
|
2022-10-21 18:38:19 +00:00
|
|
|
--add-flags "-jar $out/lib/MediathekView.jar" \
|
|
|
|
--suffix LD_LIBRARY_PATH : "${libraryPath}"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/MediathekView \
|
2022-10-21 18:38:19 +00:00
|
|
|
--add-flags "-jar $out/lib/MediathekView.jar" \
|
|
|
|
--suffix LD_LIBRARY_PATH : "${libraryPath}"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/MediathekView_ipv4 \
|
2022-10-21 18:38:19 +00:00
|
|
|
--add-flags "-Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar" \
|
|
|
|
--suffix LD_LIBRARY_PATH : "${libraryPath}"
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)";
|
|
|
|
homepage = "https://mediathekview.de/";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-10-04 12:37:57 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ moredread ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|