Loading pkgs/applications/audio/tauon/default.nix +62 −59 Original line number Diff line number Diff line { lib , stdenv , fetchFromGitHub , pkg-config , python3Packages , ffmpeg , flac , libjxl , librsvg , game-music-emu , gobject-introspection , gtk3 , kissfft , libappindicator , libnotify , libsamplerate , libvorbis , miniaudio , mpg123 , libopenmpt , opusfile , wavpack , pango , pulseaudio , withDiscordRPC ? false { lib, stdenv, fetchFromGitHub, kissfft, miniaudio, pkg-config, python3Packages, gobject-introspection, flac, game-music-emu, gtk3, libappindicator, libnotify, libopenmpt, librsvg, libsamplerate, libvorbis, mpg123, opusfile, pango, wavpack, ffmpeg, pulseaudio, withDiscordRPC ? false, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -46,26 +46,23 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace tauon.py \ --replace 'install_mode = False' 'install_mode = True' \ --replace 'install_directory = os.path.dirname(os.path.abspath(__file__))' 'install_directory = "${placeholder "out"}/share/tauon"' --replace-fail 'install_mode = False' 'install_mode = True' \ --replace-fail 'install_directory = os.path.dirname(os.path.abspath(__file__))' 'install_directory = "${placeholder "out"}/share/tauon"' substituteInPlace t_modules/t_main.py \ --replace 'install_mode = False' 'install_mode = True' \ --replace 'libopenmpt.so' '${lib.getLib libopenmpt}/lib/libopenmpt.so' \ --replace 'lib/libphazor.so' '../../lib/libphazor.so' --replace-fail 'install_mode = False' 'install_mode = True' \ --replace-fail 'libopenmpt.so' '${lib.getLib libopenmpt}/lib/libopenmpt.so' substituteInPlace t_modules/t_phazor.py \ --replace 'lib/libphazor.so' '../../lib/libphazor.so' --replace-fail 'lib/libphazor.so' '../../lib/libphazor.so' patchShebangs compile-phazor.sh substituteInPlace compile-phazor.sh --replace-fail 'gcc' '${stdenv.cc.targetPrefix}cc' substituteInPlace compile-phazor.sh --replace 'gcc' '${stdenv.cc.targetPrefix}cc' substituteInPlace extra/tauonmb.desktop --replace 'Exec=/opt/tauon-music-box/tauonmb.sh' 'Exec=${placeholder "out"}/bin/tauon' substituteInPlace extra/tauonmb.desktop --replace-fail 'Exec=/opt/tauon-music-box/tauonmb.sh' 'Exec=${placeholder "out"}/bin/tauon' ''; postBuild = '' ./compile-phazor.sh bash ./compile-phazor.sh ''; nativeBuildInputs = [ Loading @@ -90,12 +87,13 @@ stdenv.mkDerivation (finalAttrs: { wavpack ]; pythonPath = with python3Packages; [ pythonPath = with python3Packages; [ beautifulsoup4 gst-python dbus-python isounidecode libjxl jxlpy musicbrainzngs mutagen natsort Loading @@ -105,17 +103,22 @@ stdenv.mkDerivation (finalAttrs: { pychromecast pylast pygobject3 pylyrics pysdl2 requests send2trash setproctitle ] ++ lib.optional withDiscordRPC pypresence ] ++ lib.optional withDiscordRPC pypresence ++ lib.optional stdenv.isLinux pulsectl; makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}" "--prefix LD_LIBRARY_PATH : ${pulseaudio}/lib" "--prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath [ game-music-emu pulseaudio ] }" "--prefix PYTHONPATH : $out/share/tauon" "--set GI_TYPELIB_PATH $GI_TYPELIB_PATH" ]; Loading Loading
pkgs/applications/audio/tauon/default.nix +62 −59 Original line number Diff line number Diff line { lib , stdenv , fetchFromGitHub , pkg-config , python3Packages , ffmpeg , flac , libjxl , librsvg , game-music-emu , gobject-introspection , gtk3 , kissfft , libappindicator , libnotify , libsamplerate , libvorbis , miniaudio , mpg123 , libopenmpt , opusfile , wavpack , pango , pulseaudio , withDiscordRPC ? false { lib, stdenv, fetchFromGitHub, kissfft, miniaudio, pkg-config, python3Packages, gobject-introspection, flac, game-music-emu, gtk3, libappindicator, libnotify, libopenmpt, librsvg, libsamplerate, libvorbis, mpg123, opusfile, pango, wavpack, ffmpeg, pulseaudio, withDiscordRPC ? false, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -46,26 +46,23 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace tauon.py \ --replace 'install_mode = False' 'install_mode = True' \ --replace 'install_directory = os.path.dirname(os.path.abspath(__file__))' 'install_directory = "${placeholder "out"}/share/tauon"' --replace-fail 'install_mode = False' 'install_mode = True' \ --replace-fail 'install_directory = os.path.dirname(os.path.abspath(__file__))' 'install_directory = "${placeholder "out"}/share/tauon"' substituteInPlace t_modules/t_main.py \ --replace 'install_mode = False' 'install_mode = True' \ --replace 'libopenmpt.so' '${lib.getLib libopenmpt}/lib/libopenmpt.so' \ --replace 'lib/libphazor.so' '../../lib/libphazor.so' --replace-fail 'install_mode = False' 'install_mode = True' \ --replace-fail 'libopenmpt.so' '${lib.getLib libopenmpt}/lib/libopenmpt.so' substituteInPlace t_modules/t_phazor.py \ --replace 'lib/libphazor.so' '../../lib/libphazor.so' --replace-fail 'lib/libphazor.so' '../../lib/libphazor.so' patchShebangs compile-phazor.sh substituteInPlace compile-phazor.sh --replace-fail 'gcc' '${stdenv.cc.targetPrefix}cc' substituteInPlace compile-phazor.sh --replace 'gcc' '${stdenv.cc.targetPrefix}cc' substituteInPlace extra/tauonmb.desktop --replace 'Exec=/opt/tauon-music-box/tauonmb.sh' 'Exec=${placeholder "out"}/bin/tauon' substituteInPlace extra/tauonmb.desktop --replace-fail 'Exec=/opt/tauon-music-box/tauonmb.sh' 'Exec=${placeholder "out"}/bin/tauon' ''; postBuild = '' ./compile-phazor.sh bash ./compile-phazor.sh ''; nativeBuildInputs = [ Loading @@ -90,12 +87,13 @@ stdenv.mkDerivation (finalAttrs: { wavpack ]; pythonPath = with python3Packages; [ pythonPath = with python3Packages; [ beautifulsoup4 gst-python dbus-python isounidecode libjxl jxlpy musicbrainzngs mutagen natsort Loading @@ -105,17 +103,22 @@ stdenv.mkDerivation (finalAttrs: { pychromecast pylast pygobject3 pylyrics pysdl2 requests send2trash setproctitle ] ++ lib.optional withDiscordRPC pypresence ] ++ lib.optional withDiscordRPC pypresence ++ lib.optional stdenv.isLinux pulsectl; makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}" "--prefix LD_LIBRARY_PATH : ${pulseaudio}/lib" "--prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath [ game-music-emu pulseaudio ] }" "--prefix PYTHONPATH : $out/share/tauon" "--set GI_TYPELIB_PATH $GI_TYPELIB_PATH" ]; Loading