18 gsettings-desktop-schemas,
39 gstInputs = with gst_all_1; [
47 # For the rt2rtng utility for converting bookmark file to -ng format
48 pythonInputs = with python3.pkgs; [
53 stdenv.mkDerivation rec {
54 pname = "radiotray-ng";
57 src = fetchFromGitHub {
61 sha256 = "sha256-/0GlQdSsIPKGrDT9CgxvaH8TpAbqxFduwL2A2+BSrEI=";
80 gsettings-desktop-schemas
86 # for https gstreamer / libsoup
93 ./no-dl-googletest.patch
95 name = "gcc13-fixes.patch";
96 url = "https://github.com/ebruck/radiotray-ng/commit/7a99bfa784f77be8f160961d25ab63dc2d5ccde0.patch";
97 hash = "sha256-7x3v0dp9WPgd/vsnxezgXIZGsBrIHkTwIiu+FMlLmyA=";
102 for x in package/CMakeLists.txt include/radiotray-ng/common.hpp data/*.desktop; do
103 substituteInPlace $x --replace /usr $out
105 substituteInPlace package/CMakeLists.txt --replace /etc/xdg/autostart $out/etc/xdg/autostart
107 # We don't find the radiotray-ng-notification icon otherwise
108 substituteInPlace data/radiotray-ng.desktop \
109 --replace radiotray-ng-notification radiotray-ng-on
110 substituteInPlace data/rtng-bookmark-editor.desktop \
111 --replace radiotray-ng-notification radiotray-ng-on
115 "-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
118 # 'wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)' is deprecated
119 env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
121 nativeCheckInputs = [ gtest ];
122 doCheck = !stdenv.hostPlatform.isAarch64; # single failure that I can't explain
125 gappsWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ dbus ]})
126 wrapProgram $out/bin/rt2rtng --prefix PYTHONPATH : $PYTHONPATH
130 description = "Internet radio player for linux";
131 homepage = "https://github.com/ebruck/radiotray-ng";
132 license = licenses.gpl3;
134 platforms = platforms.linux;