1 { lib, stdenv, fetchFromGitHub, fetchpatch
13 , gsettings-desktop-schemas
15 , libappindicator-gtk3
34 gstInputs = with gst_all_1; [
35 gstreamer gst-plugins-base
36 gst-plugins-good gst-plugins-bad gst-plugins-ugly
39 # For the rt2rtng utility for converting bookmark file to -ng format
40 pythonInputs = with python3.pkgs; [ python lxml ];
42 stdenv.mkDerivation rec {
43 pname = "radiotray-ng";
46 src = fetchFromGitHub {
50 sha256 = "sha256-/0GlQdSsIPKGrDT9CgxvaH8TpAbqxFduwL2A2+BSrEI=";
53 nativeBuildInputs = [ cmake pkg-config wrapGAppsHook3 makeWrapper ];
57 boost jsoncpp libbsd pcre
58 glibmm hicolor-icon-theme gsettings-desktop-schemas libappindicator-gtk3 libnotify
62 # for https gstreamer / libsoup
68 ./no-dl-googletest.patch
70 name = "gcc13-fixes.patch";
71 url = "https://github.com/ebruck/radiotray-ng/commit/7a99bfa784f77be8f160961d25ab63dc2d5ccde0.patch";
72 hash = "sha256-7x3v0dp9WPgd/vsnxezgXIZGsBrIHkTwIiu+FMlLmyA=";
77 for x in package/CMakeLists.txt include/radiotray-ng/common.hpp data/*.desktop; do
78 substituteInPlace $x --replace /usr $out
80 substituteInPlace package/CMakeLists.txt --replace /etc/xdg/autostart $out/etc/xdg/autostart
82 # We don't find the radiotray-ng-notification icon otherwise
83 substituteInPlace data/radiotray-ng.desktop \
84 --replace radiotray-ng-notification radiotray-ng-on
85 substituteInPlace data/rtng-bookmark-editor.desktop \
86 --replace radiotray-ng-notification radiotray-ng-on
90 "-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
93 # 'wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)' is deprecated
94 env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
96 nativeCheckInputs = [ gtest ];
97 doCheck = !stdenv.hostPlatform.isAarch64; # single failure that I can't explain
100 gappsWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ dbus ]})
101 wrapProgram $out/bin/rt2rtng --prefix PYTHONPATH : $PYTHONPATH
105 description = "Internet radio player for linux";
106 homepage = "https://github.com/ebruck/radiotray-ng";
107 license = licenses.gpl3;
109 platforms = platforms.linux;