2019-05-22 12:03:39 +01:00
|
|
|
{ stdenv, fetchzip, wrapGAppsHook, alsaLib, atk, cairo, gdk-pixbuf
|
2018-11-25 08:48:05 +00:00
|
|
|
, glib, gst_all_1, gtk3, libSM, libX11, libpng12, pango, zlib }:
|
2016-08-15 15:46:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "transcribe";
|
2018-11-25 08:48:05 +00:00
|
|
|
version = "8.72";
|
2016-08-15 15:46:12 +01:00
|
|
|
|
2018-08-20 20:11:29 +01:00
|
|
|
src = if stdenv.hostPlatform.system == "i686-linux" then
|
2016-08-15 15:46:12 +01:00
|
|
|
fetchzip {
|
2018-11-25 08:48:05 +00:00
|
|
|
url = "https://www.seventhstring.com/xscribe/downlinux32/xscsetup.tar.gz";
|
|
|
|
sha256 = "1h5l7ry9c9awpxfnd29b0wm973ifrhj17xl5d2fdsclw2swsickb";
|
2016-08-15 15:46:12 +01:00
|
|
|
}
|
2018-08-20 20:11:29 +01:00
|
|
|
else if stdenv.hostPlatform.system == "x86_64-linux" then
|
2016-08-15 15:46:12 +01:00
|
|
|
fetchzip {
|
2018-11-25 08:48:05 +00:00
|
|
|
url = "https://www.seventhstring.com/xscribe/downlinux64/xsc64setup.tar.gz";
|
|
|
|
sha256 = "1rpd3ppnx5i5yrnfbjrx7h7dk48kwl99i9lnpa75ap7nxvbiznm0";
|
2016-08-15 15:46:12 +01:00
|
|
|
}
|
|
|
|
else throw "Platform not supported";
|
|
|
|
|
2018-11-25 08:48:05 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
2016-08-15 15:46:12 +01:00
|
|
|
|
2018-11-25 08:48:05 +00:00
|
|
|
buildInputs = with gst_all_1; [ gst-plugins-base gst-plugins-good
|
|
|
|
gst-plugins-bad gst-plugins-ugly ];
|
2016-08-15 15:46:12 +01:00
|
|
|
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
2018-11-25 08:48:05 +00:00
|
|
|
libPath = with gst_all_1; stdenv.lib.makeLibraryPath [
|
2019-05-22 12:03:39 +01:00
|
|
|
stdenv.cc.cc glib gtk3 atk pango cairo gdk-pixbuf alsaLib
|
2017-02-26 20:25:29 +00:00
|
|
|
libX11 libSM libpng12 gstreamer gst-plugins-base zlib
|
2016-08-15 15:46:12 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/libexec $out/share/doc
|
|
|
|
cp transcribe $out/libexec
|
|
|
|
cp xschelp.htb readme_gtk.html $out/share/doc
|
|
|
|
cp -r gtkicons $out/share/icons
|
|
|
|
|
|
|
|
ln -s $out/share/doc/xschelp.htb $out/libexec
|
|
|
|
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
|
|
|
$out/libexec/transcribe
|
2018-11-25 08:48:05 +00:00
|
|
|
'';
|
2016-08-15 15:46:12 +01:00
|
|
|
|
2018-11-25 08:48:05 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
2016-08-15 15:46:12 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : "${libPath}"
|
2018-11-25 08:48:05 +00:00
|
|
|
)
|
|
|
|
'';
|
2016-08-15 15:46:12 +01:00
|
|
|
|
2018-11-25 08:48:05 +00:00
|
|
|
postFixup = ''
|
2016-08-15 15:46:12 +01:00
|
|
|
ln -s $out/libexec/transcribe $out/bin/
|
2018-11-25 08:48:05 +00:00
|
|
|
'';
|
2016-08-15 15:46:12 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Software to help transcribe recorded music";
|
|
|
|
longDescription = ''
|
|
|
|
The Transcribe! application is an assistant for people who want
|
|
|
|
to work out a piece of music from a recording, in order to write
|
|
|
|
it out, or play it themselves, or both. It doesn't do the
|
|
|
|
transcribing for you, but it is essentially a specialised player
|
|
|
|
program which is optimised for the purpose of transcription. It
|
|
|
|
has many transcription-specific features not found on
|
|
|
|
conventional music players.
|
|
|
|
'';
|
|
|
|
homepage = https://www.seventhstring.com/xscribe/;
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ michalrus ];
|
2019-04-07 16:42:15 +01:00
|
|
|
broken = true;
|
2016-08-15 15:46:12 +01:00
|
|
|
};
|
|
|
|
}
|