@@ -1,38 +0,0 @@
1−{ stdenv, fetchurl, jre }:
2−
3−with stdenv;
4−
5−mkDerivation rec {
6−
7− version = "10";
8− name = "zdfmediathk-${version}";
9− src = fetchurl {
10− url = "https://github.com/xaverW/MediathekView/archive/Version${version}.tar.gz";
11− sha256 = "12iyigqjslbn8rzym1mq1s0mvss7r97aiy6wfdrq5m0psarlcljw";
12− };
13−
14− installPhase = ''
15− mkdir -p $out/{lib,bin,share/{doc,licenses}}
16− cd dist/
17− install -m644 MediathekView.jar $out/
18− install -m644 -t $out/lib lib/*
19− install -m755 bin/flv.sh $out/bin/
20− install -m644 -t $out/share/doc Anleitung/*.pdf
21− install -m644 -t $out/share/licenses Copyright/{*.*,_copyright}
22− bin="$out/bin/mediathek"
23− cat >> "$bin" << EOF
24− #!/bin/sh
25− exec ${jre}/bin/java -cp "$out/lib/*" -Xms128M -Xmx1G -jar "$out/MediathekView.jar" "\$@"
26− EOF
27− chmod +x "$bin"
28− '';
29−
30− meta = with stdenv.lib; {
31− description = "Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)";
32− homepage = https://github.com/xaverW/MediathekView/;
33− license = licenses.gpl3;
34− maintainers = [ maintainers.flosse ];
35− platforms = platforms.all;
36− };
37−
38−}