2015-03-07 16:48:54 +00:00
|
|
|
{ stdenv, fetchurl, swt, jdk, makeWrapper, alsaLib }:
|
|
|
|
|
2018-08-20 20:11:29 +01:00
|
|
|
let metadata = assert stdenv.hostPlatform.system == "i686-linux" || stdenv.hostPlatform.system == "x86_64-linux";
|
|
|
|
if stdenv.hostPlatform.system == "i686-linux" then
|
2015-03-11 17:34:26 +00:00
|
|
|
{ arch = "x86"; sha256 = "1qmb51k0538pn7gv4nsvhfv33xik4l4af0qmpllkzrikmj8wvzlb"; }
|
|
|
|
else
|
|
|
|
{ arch = "x86_64"; sha256 = "12af47jhlrh9aq5b3d13l7cdhlndgnfpy61gz002hajbq7i00ixh"; };
|
2015-03-07 16:48:54 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
version = "1.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tuxguitar";
|
2015-03-07 16:48:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/tuxguitar/${pname}-${version}-linux-${metadata.arch}.tar.gz";
|
2015-03-07 16:48:54 +00:00
|
|
|
sha256 = metadata.sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-03-08 10:14:02 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r lib share $out/
|
|
|
|
cp tuxguitar $out/bin/tuxguitar
|
|
|
|
cp tuxguitar.jar $out/lib
|
2015-03-07 16:48:54 +00:00
|
|
|
|
2015-03-08 10:14:02 +00:00
|
|
|
ln -s $out/share $out/bin/share
|
|
|
|
|
|
|
|
wrapProgram $out/bin/tuxguitar \
|
2015-03-07 16:48:54 +00:00
|
|
|
--set JAVA "${jdk}/bin/java" \
|
2016-08-23 00:13:46 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : "$out/lib/:${stdenv.lib.makeLibraryPath [ swt alsaLib ]}" \
|
2015-03-08 10:14:02 +00:00
|
|
|
--prefix CLASSPATH : "${swt}/jars/swt.jar:$out/lib/tuxguitar.jar:$out/lib/itext.jar"
|
2015-03-07 16:48:54 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A multitrack guitar tablature editor";
|
|
|
|
longDescription = ''
|
|
|
|
TuxGuitar is a multitrack guitar tablature editor and player written
|
|
|
|
in Java-SWT. It can open GuitarPro, PowerTab and TablEdit files.
|
|
|
|
'';
|
|
|
|
homepage = http://www.tuxguitar.com.ar/;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.ardumont ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|