summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/tinymediamanager
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-06-02 23:35:17 +0200
committertv <tv@krebsco.de>2020-06-02 23:35:17 +0200
commit09c9f8f7fb04be39390b6f65966789c1bf6333e5 (patch)
treeb0cb0f718b40517b0645a38169e67b1088566f64 /makefu/5pkgs/tinymediamanager
parent09e620c79b70e495e9651e8e5c1b160dd1b5fb8d (diff)
parent211e2ca6b9a1d8b4dd92071065b0b595123fe282 (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/5pkgs/tinymediamanager')
-rw-r--r--makefu/5pkgs/tinymediamanager/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/makefu/5pkgs/tinymediamanager/default.nix b/makefu/5pkgs/tinymediamanager/default.nix
new file mode 100644
index 000000000..64d00e3a1
--- /dev/null
+++ b/makefu/5pkgs/tinymediamanager/default.nix
@@ -0,0 +1,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;
+ };
+}