summary refs log tree commit diff
path: root/pkgs/applications/editors/music
diff options
context:
space:
mode:
authorAntoine R. Dumont <antoine.romain.dumont@gmail.com>2015-03-07 17:48:54 +0100
committerAntoine R. Dumont <antoine.romain.dumont@gmail.com>2015-03-08 10:22:56 +0100
commit00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874 (patch)
tree4e437195f2cfe6abc507e7ef7628e851b54f36b2 /pkgs/applications/editors/music
parent4c985c26af29ffe91c05c60b62ad2b7a2194ac76 (diff)
downloadnixpkgs-00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874.tar
nixpkgs-00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874.tar.gz
nixpkgs-00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874.tar.bz2
nixpkgs-00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874.tar.lz
nixpkgs-00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874.tar.xz
nixpkgs-00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874.tar.zst
nixpkgs-00fb3c0b7ee3ea1082cf82ae1bf7a691f0d69874.zip
Add tuxguitar derivation
Diffstat (limited to 'pkgs/applications/editors/music')
-rw-r--r--pkgs/applications/editors/music/tuxguitar/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/editors/music/tuxguitar/default.nix b/pkgs/applications/editors/music/tuxguitar/default.nix
new file mode 100644
index 00000000000..81c7d2e3e1e
--- /dev/null
+++ b/pkgs/applications/editors/music/tuxguitar/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchurl, swt, jdk, makeWrapper, alsaLib }:
+
+let metadata = if stdenv.system == "i686-linux"
+               then { arch = "x86"; sha256 = "1qmb51k0538pn7gv4nsvhfv33xik4l4af0qmpllkzrikmj8wvzlb"; }
+               else if stdenv.system == "x86_64-linux"
+                    then { arch = "x86_64"; sha256 = "12af47jhlrh9aq5b3d13l7cdhlndgnfpy61gz002hajbq7i00ixh"; }
+                    else { };
+in stdenv.mkDerivation rec {
+  version = "1.2";
+  name = "tuxguitar-${version}";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/tuxguitar/${name}-linux-${metadata.arch}.tar.gz";
+    sha256 = metadata.sha256;
+  };
+
+  buildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    mkdir -p $out
+    cp -r * $out/
+
+    wrapProgram $out/tuxguitar \
+      --set JAVA "${jdk}/bin/java" \
+      --prefix LD_LIBRARY_PATH : "${swt}/lib:${alsaLib}/lib" \
+      --prefix CLASSPATH : "${swt}/jars/swt.jar"
+  '';
+
+  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;
+  };
+}