2021-03-14 16:20:58 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-03-22 19:56:22 +00:00
|
|
|
, fetchFromGitLab
|
2023-05-12 14:17:16 +00:00
|
|
|
, cargo
|
2020-03-22 19:56:22 +00:00
|
|
|
, dbus
|
|
|
|
, desktop-file-utils
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
2021-03-14 16:20:58 +00:00
|
|
|
, gitMinimal
|
2020-03-22 19:56:22 +00:00
|
|
|
, glib
|
|
|
|
, gst_all_1
|
2021-06-22 12:00:11 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2020-03-22 19:56:22 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2023-05-12 14:17:16 +00:00
|
|
|
, rustc
|
2020-03-22 19:56:22 +00:00
|
|
|
, sqlite
|
2022-04-25 00:51:09 +00:00
|
|
|
, wrapGAppsHook4
|
|
|
|
, cmake
|
|
|
|
, libshumate
|
2020-03-22 19:56:22 +00:00
|
|
|
}:
|
|
|
|
|
2021-03-14 16:20:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-22 19:56:22 +00:00
|
|
|
pname = "shortwave";
|
2023-02-07 05:14:31 +00:00
|
|
|
version = "3.2.0";
|
2020-03-22 19:56:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "Shortwave";
|
|
|
|
rev = version;
|
2023-02-07 05:14:31 +00:00
|
|
|
sha256 = "sha256-ESZ1yD1IuBar8bv83xMczZbtPtHbWRpe2yMVyr7K5gQ=";
|
2020-03-22 19:56:22 +00:00
|
|
|
};
|
|
|
|
|
2021-03-14 16:20:58 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-02-07 05:14:31 +00:00
|
|
|
hash = "sha256-8W46bGAitR2YbZbnsigAZMW5pSFTkDAe5JNaNOH5JfA=";
|
2021-03-14 16:20:58 +00:00
|
|
|
};
|
2020-03-22 19:56:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
2021-03-14 16:20:58 +00:00
|
|
|
gitMinimal
|
2020-03-22 19:56:22 +00:00
|
|
|
glib # for glib-compile-schemas
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2023-05-12 14:17:16 +00:00
|
|
|
cargo
|
2021-03-14 16:20:58 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
2023-05-12 14:17:16 +00:00
|
|
|
rustc
|
2022-04-25 00:51:09 +00:00
|
|
|
wrapGAppsHook4
|
|
|
|
cmake
|
2020-03-22 19:56:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
2021-06-22 12:00:11 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2020-03-22 19:56:22 +00:00
|
|
|
openssl
|
|
|
|
sqlite
|
2022-04-25 00:51:09 +00:00
|
|
|
libshumate
|
2020-03-22 19:56:22 +00:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
]);
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-22 19:56:22 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/Shortwave";
|
|
|
|
description = "Find and listen to internet radio stations";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|