2020-04-24 13:04:56 +02:00
|
|
|
{ stdenv, lib, pkgs, fetchurl,libmediainfo,libzen,jre }:
|
|
|
|
let
|
|
|
|
tmm-bin = pkgs.writers.writeDash "tinymediamanager" ''
|
|
|
|
TMMDIR=$(dirname $(readlink -f $0))/../lib/tmm
|
|
|
|
tmp=$(mktemp -d) # workaround for unwriteable base directory
|
|
|
|
trap 'rm -rf $tmp' INT TERM EXIT
|
|
|
|
cd "$tmp"
|
|
|
|
LD_LIBRARY_PATH=${lib.makeLibraryPath [ libmediainfo libzen ]} \
|
|
|
|
${jre}/bin/java \
|
|
|
|
-Dappbase=https://www.tinymediamanager.org/ \
|
|
|
|
-Dtmm.contentfolder=$HOME/.config/tmm \
|
|
|
|
-classpath "$TMMDIR/tmm.jar:$TMMDIR/lib/*" \
|
|
|
|
org.tinymediamanager.TinyMediaManager $@
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tinymediamanager";
|
2020-06-26 13:14:41 +02:00
|
|
|
version = "3.1.6";
|
2020-04-24 13:04:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-06-26 13:33:28 +02:00
|
|
|
#url = "http://release.tinymediamanager.org/v3/dist/tmm_${version}_linux.tar.gz";
|
|
|
|
url = "https://archive.org/download/tmm_linux.tar/tmm_${version}_linux.tar.gz";
|
2020-06-26 13:14:41 +02:00
|
|
|
sha256 = "06h0q52f0q4aq600nqzjkgrbkwxa2gnpbbn3nbfhni550bdgvf40";
|
2020-04-24 13:04:56 +02:00
|
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
installPhase = ''
|
|
|
|
install -D ${tmm-bin} $out/bin/tinymediamanager
|
|
|
|
install -d $out/lib
|
|
|
|
cp -r . $out/lib/tmm
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://users.eastlink.ca/~doiron/bin2iso/ ;
|
|
|
|
description = "converts bin+cue to iso";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|