3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/mediathekview/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jre, zip }:
2015-05-23 11:41:07 +01:00
stdenv.mkDerivation rec {
version = "13.8.0";
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";
sha256 = "0zfkwz5psv7m0881ykgqrxwjhadg39c55aj2wpy7m1jdara86c5q";
2015-05-23 11:41:07 +01:00
};
nativeBuildInputs = [ makeWrapper zip ];
2015-05-23 11:41:07 +01:00
installPhase = ''
runHook preInstall
2019-11-11 21:48:24 +00:00
mkdir -p $out/{bin,lib}
# log4j mitigation, see https://logging.apache.org/log4j/2.x/security.html
zip -d MediathekView.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
2019-11-11 21:48:24 +00:00
install -m644 MediathekView.jar $out/lib
makeWrapper ${jre}/bin/java $out/bin/mediathek \
--add-flags "-jar $out/lib/MediathekView.jar"
2019-11-11 21:48:24 +00:00
makeWrapper ${jre}/bin/java $out/bin/MediathekView \
--add-flags "-jar $out/lib/MediathekView.jar"
2019-11-11 21:48:24 +00:00
makeWrapper ${jre}/bin/java $out/bin/MediathekView_ipv4 \
--add-flags "-Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar"
runHook postInstall
2019-11-11 21:48:24 +00:00
'';
2015-05-23 11:41:07 +01:00
meta = with lib; {
description = "Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)";
homepage = "https://mediathekview.de/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ moredread ];
platforms = platforms.all;
2015-05-23 11:41:07 +01:00
};
}