23 stdenv.mkDerivation rec {
28 if stdenv.hostPlatform.system == "x86_64-linux" then
31 url = "https://www.seventhstring.com/xscribe/downlo/xscsetup-${version}.tar.gz";
32 sha256 = "sha256-VWfjtNbwK9ZiWgs161ubRy+IjSXXk3FEfMkmA6Jhz8A=";
34 else throw "Platform not supported";
42 buildInputs = with gst_all_1; [
51 libPath = with gst_all_1; lib.makeLibraryPath [
71 mkdir -p $out/bin $out/libexec $out/share/doc
72 cp transcribe $out/libexec
73 cp xschelp.htb readme_gtk.html $out/share/doc
74 ln -s $out/share/doc/xschelp.htb $out/libexec
75 # The script normally installs to the home dir
76 sed -i -E 's!BIN_DST=.*!BIN_DST=$out!' install-linux.sh
77 sed -i -e 's!Exec=''${BIN_DST}/transcribe/transcribe!Exec=transcribe!' install-linux.sh
78 sed -i -e 's!''${BIN_DST}/transcribe!''${BIN_DST}/libexec!' install-linux.sh
79 rm -f xschelp.htb readme_gtk.html *.so
80 XDG_DATA_HOME=$out/share bash install-linux.sh -i
82 --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
83 $out/libexec/transcribe
88 --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH_1_0"
89 --prefix LD_LIBRARY_PATH : "${libPath}"
94 ln -s $out/libexec/transcribe $out/bin/
98 description = "Software to help transcribe recorded music";
100 The Transcribe! application is an assistant for people who want
101 to work out a piece of music from a recording, in order to write
102 it out, or play it themselves, or both. It doesn't do the
103 transcribing for you, but it is essentially a specialised player
104 program which is optimised for the purpose of transcription. It
105 has many transcription-specific features not found on
106 conventional music players.
108 homepage = "https://www.seventhstring.com/xscribe/";
109 changelog = "https://www.seventhstring.com/xscribe/history.html";
110 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
111 license = licenses.unfree;
112 maintainers = with maintainers; [ iwanb ];
113 platforms = platforms.linux;
114 mainProgram = "transcribe";