2021-03-15 08:37:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, 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
|
|
|
|
, python3
|
|
|
|
, rustPlatform
|
|
|
|
, sqlite
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "shortwave";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "Shortwave";
|
|
|
|
rev = version;
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-25qPb7qlqCwYJzl4qZxAZYx5asxSlXBlc/0dGyBdk1o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2021-07-14 22:03:04 +00:00
|
|
|
hash = "sha256-00dQXcSNmdZb2nSLG3q7jm4sugF9XR4LbH0OmcuHVxA=";
|
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
|
|
|
|
python3
|
2021-03-15 08:37:03 +00:00
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.rustc
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
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 ];
|
2022-01-26 04:04:25 +00:00
|
|
|
broken = true; # incompatible with latest libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|