-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
- branch-off-24.11
- 25.05-pre
- 24.11
- 24.11-pre
- 24.11-beta
- 24.05
- 24.05-pre
- 24.05-beta
- 23.11
- 23.11-pre
- 23.11-beta
- 23.05
- 23.05-pre
- 23.05-beta
- 22.11
- 22.11-beta
- 22.05
- 22.05-pre
- 22.05-beta
- 21.11
- 21.11-pre
- 21.11-beta
- 21.05
- 21.05-beta
- 20.09
- 20.09-beta
- 20.09-alpha
- 20.03
- 20.03-beta
- 19.09
- 19.09-beta
- 19.03
- 19.03-beta
- 18.09
- 18.09-beta
- 18.03
- 18.03-beta
Showing
45 changed files
with
466 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ stdenv, fetchFromGitHub, fetchpatch | ||
, cmake, pkgconfig | ||
# Transport | ||
, curl | ||
# Libraries | ||
, boost | ||
, jsoncpp | ||
, libbsd | ||
, pcre | ||
# GUI/Desktop | ||
, dbus | ||
, glibmm | ||
, gnome3 | ||
, hicolor_icon_theme | ||
, libappindicator-gtk3 | ||
, libnotify | ||
, libxdg_basedir | ||
# GStreamer | ||
, gst_all_1 | ||
# User-agent info | ||
, lsb-release | ||
# rt2rtng | ||
, python2 | ||
# Testing | ||
, gmock | ||
# Fixup | ||
, wrapGAppsHook | ||
, makeWrapper | ||
}: | ||
|
||
let | ||
gstInputs = with gst_all_1; [ | ||
gstreamer gst-plugins-base | ||
gst-plugins-good gst-plugins-bad gst-plugins-ugly | ||
gst-libav | ||
]; | ||
# For the rt2rtng utility for converting bookmark file to -ng format | ||
pythonInputs = with python2.pkgs; [ python2 lxml ]; | ||
in | ||
stdenv.mkDerivation rec { | ||
name = "radiotray-ng-${version}"; | ||
version = "0.1.7"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ebruck"; | ||
repo = "radiotray-ng"; | ||
rev = "v${version}"; | ||
sha256 = "1m853gzh9r249crn0xyrq22x154r005j58b0kq3nsrgi5cps2zdv"; | ||
}; | ||
|
||
nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook makeWrapper ]; | ||
|
||
buildInputs = [ | ||
curl | ||
boost jsoncpp libbsd pcre | ||
glibmm hicolor_icon_theme gnome3.gsettings_desktop_schemas libappindicator-gtk3 libnotify | ||
libxdg_basedir | ||
lsb-release | ||
] ++ stdenv.lib.optional doCheck gmock | ||
++ gstInputs | ||
++ pythonInputs; | ||
|
||
prePatch = '' | ||
substituteInPlace debian/CMakeLists.txt \ | ||
--replace /usr $out | ||
substituteInPlace include/radiotray-ng/common.hpp \ | ||
--replace /usr $out | ||
''; | ||
|
||
patches = [ | ||
(fetchpatch { | ||
# Fix menu separators and minor touchup to 'version' | ||
url = "https://github.com/ebruck/radiotray-ng/commit/827e9f1baaa03ab4d8a5fb3aab043e72950eb965.patch"; | ||
sha256 = "1aykl6lq4pga34xg5r9mc616gxnd63q6gr8qzg57w6874cj3csrr"; | ||
}) | ||
]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
doCheck = true; | ||
|
||
checkPhase = "ctest"; | ||
|
||
preFixup = '' | ||
gappsWrapperArgs+=(--suffix PATH : ${stdenv.lib.makeBinPath [ dbus ]}) | ||
wrapProgram $out/bin/rt2rtng --prefix PYTHONPATH : $PYTHONPATH | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "An internet radio player for linux"; | ||
homepage = https://github.com/ebruck/radiotray-ng; | ||
license = licenses.gpl3; | ||
maintainers = with maintainers; [ dtzWill ]; | ||
platforms = platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.