3
0
Fork 0
forked from mirrors/nixpkgs

mediathekview: 13.8.0 -> 13.9.1 (#194125)

This commit is contained in:
André-Patrick Bubel 2022-10-09 12:40:07 +02:00 committed by GitHub
parent 1d4a52da6a
commit 17b9d61957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 11 deletions

View file

@ -1,33 +1,38 @@
{ lib, stdenv, fetchurl, makeWrapper, jre, zip }:
{ lib, stdenv, fetchurl, makeWrapper, libglvnd, libnotify, jre, zip }:
stdenv.mkDerivation rec {
version = "13.8.0";
version = "13.9.1";
pname = "mediathekview";
src = fetchurl {
url = "https://download.mediathekview.de/stabil/MediathekView-${version}-linux.tar.gz";
sha256 = "0zfkwz5psv7m0881ykgqrxwjhadg39c55aj2wpy7m1jdara86c5q";
sha256 = "4BYKkYhl1YjiAZyfNRdV5KQL+dVkL058uhTG892mXUM=";
};
nativeBuildInputs = [ makeWrapper zip ];
installPhase = ''
installPhase =
let
libraryPath = lib.strings.makeLibraryPath [ libglvnd libnotify ];
in
''
runHook preInstall
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
install -m644 MediathekView.jar $out/lib
makeWrapper ${jre}/bin/java $out/bin/mediathek \
--add-flags "-jar $out/lib/MediathekView.jar"
--add-flags "-jar $out/lib/MediathekView.jar" \
--suffix LD_LIBRARY_PATH : "${libraryPath}"
makeWrapper ${jre}/bin/java $out/bin/MediathekView \
--add-flags "-jar $out/lib/MediathekView.jar"
--add-flags "-jar $out/lib/MediathekView.jar" \
--suffix LD_LIBRARY_PATH : "${libraryPath}"
makeWrapper ${jre}/bin/java $out/bin/MediathekView_ipv4 \
--add-flags "-Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar"
--add-flags "-Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar" \
--suffix LD_LIBRARY_PATH : "${libraryPath}"
runHook postInstall
'';

View file

@ -29800,7 +29800,7 @@ with pkgs;
mediainfo-gui = callPackage ../applications/misc/mediainfo-gui { };
mediathekview = callPackage ../applications/video/mediathekview { jre = adoptopenjdk-hotspot-bin-16; };
mediathekview = callPackage ../applications/video/mediathekview { jre = temurin-bin-17; };
megapixels = callPackage ../applications/graphics/megapixels { };