blob: 64d00e3a1f062a4f0cca2980a116e6f588614025 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ 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";
version = "3.1.5";
src = fetchurl {
url = "http://release.tinymediamanager.org/v3/dist/tmm_${version}_linux.tar.gz";
sha256 = "01nlbkiwvw1cdwrxpdvkkc6g5zrjig22hxbyv1i44ay4wi6vmcax";
};
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;
};
}
|