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