2021-12-12 13:45:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchzip
|
|
|
|
, lib
|
|
|
|
, wrapGAppsHook
|
|
|
|
, alsa-lib
|
|
|
|
, atk
|
|
|
|
, cairo
|
|
|
|
, fontconfig
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
|
|
|
, gtk3
|
|
|
|
, libSM
|
|
|
|
, libX11
|
|
|
|
, libXtst
|
|
|
|
, libpng12
|
|
|
|
, pango
|
|
|
|
, zlib
|
|
|
|
}:
|
2021-05-04 16:38:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "transcribe";
|
2022-08-02 04:46:09 +00:00
|
|
|
version = "9.21";
|
2021-05-04 16:38:50 +00:00
|
|
|
|
2021-12-12 13:45:59 +00:00
|
|
|
src =
|
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
|
|
|
fetchzip
|
|
|
|
{
|
2022-08-02 04:46:09 +00:00
|
|
|
url = "https://www.seventhstring.com/xscribe/downlo/xscsetup-9.21.0.tar.gz";
|
|
|
|
sha256 = "sha256-M0hOJOsTTRxPef8rTO+/KpiP4lr8mtplS9KITaFOFPA=";
|
2021-12-12 13:45:59 +00:00
|
|
|
}
|
|
|
|
else throw "Platform not supported";
|
2021-05-04 16:38:50 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
|
|
|
|
2021-12-12 13:45:59 +00:00
|
|
|
buildInputs = with gst_all_1; [
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
|
|
|
];
|
2021-05-04 16:38:50 +00:00
|
|
|
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
|
|
|
libPath = with gst_all_1; lib.makeLibraryPath [
|
2021-12-12 13:45:59 +00:00
|
|
|
stdenv.cc.cc
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
atk
|
|
|
|
fontconfig
|
|
|
|
pango
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
alsa-lib
|
|
|
|
libX11
|
|
|
|
libXtst
|
|
|
|
libSM
|
|
|
|
libpng12
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
zlib
|
2021-05-04 16:38:50 +00: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
|
|
|
--prefix LD_LIBRARY_PATH : "${libPath}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
ln -s $out/libexec/transcribe $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with 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/";
|
2022-06-04 22:19:25 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-05-04 16:38:50 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|