2021-03-15 08:37:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitLab
|
2023-05-24 13:37:59 +00:00
|
|
|
, cargo
|
2020-04-24 23:36:52 +00:00
|
|
|
, dbus
|
|
|
|
, desktop-file-utils
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
2021-03-15 08:37:03 +00:00
|
|
|
, gitMinimal
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, gst_all_1
|
2021-07-14 22:03:04 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustc
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite
|
2022-04-27 09:35:20 +00:00
|
|
|
, wrapGAppsHook4
|
|
|
|
, cmake
|
|
|
|
, libshumate
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "shortwave";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "3.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "Shortwave";
|
|
|
|
rev = version;
|
2023-02-09 11:40:11 +00:00
|
|
|
sha256 = "sha256-ESZ1yD1IuBar8bv83xMczZbtPtHbWRpe2yMVyr7K5gQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-8W46bGAitR2YbZbnsigAZMW5pSFTkDAe5JNaNOH5JfA=";
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
2021-03-15 08:37:03 +00:00
|
|
|
gitMinimal
|
2020-04-24 23:36:52 +00:00
|
|
|
glib # for glib-compile-schemas
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-05-24 13:37:59 +00:00
|
|
|
cargo
|
2021-03-15 08:37:03 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
2023-05-24 13:37:59 +00:00
|
|
|
rustc
|
2022-04-27 09:35:20 +00:00
|
|
|
wrapGAppsHook4
|
|
|
|
cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
2021-07-14 22:03:04 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
openssl
|
|
|
|
sqlite
|
2022-04-27 09:35:20 +00:00
|
|
|
libshumate
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
]);
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/Shortwave";
|
|
|
|
description = "Find and listen to internet radio stations";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "shortwave";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Shortwave is a streaming audio player designed for the GNOME
|
|
|
|
desktop. It is the successor to the older Gradio application.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ lasandell ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|