Merge pull request #17758 from michalrus/transcribe

transcribe: init at 8.40

authored by Joachim F and committed by GitHub d3ee483b ae870f0e

+71
+69
pkgs/applications/audio/transcribe/default.nix
···
··· 1 + { stdenv, fetchzip, lib, makeWrapper, alsaLib, atk, cairo, gdk_pixbuf 2 + , glib, gst_ffmpeg, gst_plugins_bad, gst_plugins_base 3 + , gst_plugins_good, gst_plugins_ugly, gstreamer, gtk2, libSM, libX11 4 + , libpng12, pango, zlib }: 5 + 6 + stdenv.mkDerivation rec { 7 + name = "transcribe-${version}"; 8 + version = "8.40"; 9 + 10 + src = if stdenv.system == "i686-linux" then 11 + fetchzip { 12 + url = "https://www.seventhstring.com/xscribe/downlinux32_old/xscsetup.tar.gz"; 13 + sha256 = "1ngidmj9zz8bmv754s5xfsjv7v6xr03vck4kigzq4bpc9b1fdhjq"; 14 + } 15 + else if stdenv.system == "x86_64-linux" then 16 + fetchzip { 17 + url = "https://www.seventhstring.com/xscribe/downlinux64_old/xsc64setup.tar.gz"; 18 + sha256 = "0svzi8svj6zn06gj0hr8mpnhq4416dvb4g5al0gpb1g3paywdaf9"; 19 + } 20 + else throw "Platform not supported"; 21 + 22 + nativeBuildInputs = [ makeWrapper ]; 23 + 24 + buildInputs = [ gst_plugins_base gst_plugins_good 25 + gst_plugins_bad gst_plugins_ugly gst_ffmpeg ]; 26 + 27 + dontPatchELF = true; 28 + 29 + libPath = lib.makeLibraryPath [ 30 + stdenv.cc.cc glib gtk2 atk pango cairo gdk_pixbuf alsaLib 31 + libX11 libSM libpng12 gstreamer gst_plugins_base zlib 32 + ]; 33 + 34 + installPhase = '' 35 + mkdir -p $out/bin $out/libexec $out/share/doc 36 + cp transcribe $out/libexec 37 + cp xschelp.htb readme_gtk.html $out/share/doc 38 + cp -r gtkicons $out/share/icons 39 + 40 + ln -s $out/share/doc/xschelp.htb $out/libexec 41 + 42 + patchelf \ 43 + --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \ 44 + $out/libexec/transcribe 45 + 46 + wrapProgram $out/libexec/transcribe \ 47 + --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \ 48 + --prefix LD_LIBRARY_PATH : "${libPath}" 49 + 50 + ln -s $out/libexec/transcribe $out/bin/ 51 + ''; 52 + 53 + meta = with stdenv.lib; { 54 + description = "Software to help transcribe recorded music"; 55 + longDescription = '' 56 + The Transcribe! application is an assistant for people who want 57 + to work out a piece of music from a recording, in order to write 58 + it out, or play it themselves, or both. It doesn't do the 59 + transcribing for you, but it is essentially a specialised player 60 + program which is optimised for the purpose of transcription. It 61 + has many transcription-specific features not found on 62 + conventional music players. 63 + ''; 64 + homepage = https://www.seventhstring.com/xscribe/; 65 + license = licenses.unfree; 66 + platforms = platforms.linux; 67 + maintainers = with maintainers; [ michalrus ]; 68 + }; 69 + }
+2
pkgs/top-level/all-packages.nix
··· 15017 15018 transcode = callPackage ../applications/audio/transcode { }; 15019 15020 transmission = callPackage ../applications/networking/p2p/transmission { }; 15021 transmission_gtk = transmission.override { enableGTK3 = true; }; 15022
··· 15017 15018 transcode = callPackage ../applications/audio/transcode { }; 15019 15020 + transcribe = callPackage ../applications/audio/transcribe { }; 15021 + 15022 transmission = callPackage ../applications/networking/p2p/transmission { }; 15023 transmission_gtk = transmission.override { enableGTK3 = true; }; 15024