2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
2015-05-23 12:41:07 +02:00
|
|
|
|
2019-01-19 13:23:23 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-02-04 03:42:39 +01:00
|
|
|
version = "13.7.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mediathekview";
|
2015-05-23 12:41:07 +02:00
|
|
|
src = fetchurl {
|
2019-11-11 22:48:24 +01:00
|
|
|
url = "https://download.mediathekview.de/stabil/MediathekView-${version}-linux.tar.gz";
|
2021-02-04 03:42:39 +01:00
|
|
|
sha256 = "sha256-yFPyj1Mbgj2eJv4DpvfOtPyTbL9gMAXC5TzSx8AV27o=";
|
2015-05-23 12:41:07 +02:00
|
|
|
};
|
|
|
|
|
2019-01-19 13:23:23 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2015-05-23 12:41:07 +02:00
|
|
|
installPhase = ''
|
2019-11-11 22:48:24 +01:00
|
|
|
mkdir -p $out/{bin,lib}
|
2019-01-19 13:23:23 +01:00
|
|
|
|
2019-11-11 22:48:24 +01:00
|
|
|
install -m644 MediathekView.jar $out/lib
|
2019-01-19 13:23:23 +01:00
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/mediathek \
|
2021-01-26 08:57:25 +01:00
|
|
|
--add-flags "-Xmx1G --enable-preview -jar $out/lib/MediathekView.jar"
|
2019-11-11 22:48:24 +01:00
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/MediathekView \
|
2021-01-26 08:57:25 +01:00
|
|
|
--add-flags "-Xmx1G --enable-preview -jar $out/lib/MediathekView.jar"
|
2019-11-11 22:48:24 +01:00
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/MediathekView_ipv4 \
|
2021-01-26 08:57:25 +01:00
|
|
|
--add-flags "-Xmx1G --enable-preview -Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar"
|
2019-11-11 22:48:24 +01:00
|
|
|
'';
|
2015-05-23 12:41:07 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-19 13:23:23 +01:00
|
|
|
description = "Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://mediathekview.de/";
|
2019-01-19 13:23:23 +01:00
|
|
|
license = licenses.gpl3;
|
2019-02-22 16:14:13 +01:00
|
|
|
maintainers = with maintainers; [ moredread ];
|
2019-01-19 13:23:23 +01:00
|
|
|
platforms = platforms.all;
|
2015-05-23 12:41:07 +02:00
|
|
|
};
|
|
|
|
}
|