depot/third_party/nixpkgs/pkgs/applications/video/mediathekview/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

48 lines
1.4 KiB
Nix

{ lib, stdenv, fetchurl, makeWrapper, libglvnd, libnotify, jre, zip }:
stdenv.mkDerivation rec {
version = "13.9.1";
pname = "mediathekview";
src = fetchurl {
url = "https://download.mediathekview.de/stabil/MediathekView-${version}-linux.tar.gz";
sha256 = "4BYKkYhl1YjiAZyfNRdV5KQL+dVkL058uhTG892mXUM=";
};
nativeBuildInputs = [ makeWrapper zip ];
installPhase =
let
libraryPath = lib.strings.makeLibraryPath [ libglvnd libnotify ];
in
''
runHook preInstall
mkdir -p $out/{bin,lib}
install -m644 MediathekView.jar $out/lib
makeWrapper ${jre}/bin/java $out/bin/mediathek \
--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" \
--suffix LD_LIBRARY_PATH : "${libraryPath}"
makeWrapper ${jre}/bin/java $out/bin/MediathekView_ipv4 \
--add-flags "-Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar" \
--suffix LD_LIBRARY_PATH : "${libraryPath}"
runHook postInstall
'';
meta = with lib; {
description = "Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)";
homepage = "https://mediathekview.de/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.gpl3Plus;
maintainers = with maintainers; [ moredread ];
platforms = platforms.all;
};
}