shortwave: 3.2.0 -> 4.0.1

This commit is contained in:
zendo 2024-11-01 12:33:14 +08:00
parent 6fafd05b54
commit 27169a4e72

View File

@ -1,44 +1,46 @@
{ stdenv {
, lib stdenv,
, fetchFromGitLab lib,
, cargo fetchFromGitLab,
, dbus cargo,
, desktop-file-utils dbus,
, gdk-pixbuf desktop-file-utils,
, gettext gdk-pixbuf,
, gitMinimal gettext,
, glib gitMinimal,
, gst_all_1 glib,
, gtk4 gst_all_1,
, libadwaita gtk4,
, meson libadwaita,
, ninja meson,
, openssl ninja,
, pkg-config openssl,
, rustPlatform pkg-config,
, rustc rustPlatform,
, sqlite rustc,
, wrapGAppsHook4 sqlite,
, cmake wrapGAppsHook4,
, libshumate libshumate,
libseccomp,
lcms2,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "shortwave"; pname = "shortwave";
version = "3.2.0"; version = "4.0.1";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
owner = "World"; owner = "World";
repo = "Shortwave"; repo = "Shortwave";
rev = version; rev = version;
sha256 = "sha256-ESZ1yD1IuBar8bv83xMczZbtPtHbWRpe2yMVyr7K5gQ="; sha256 = "sha256-W1eOMyiooDesI13lOze/JcxzhSSxYOW6FOY85NkVyps=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-8W46bGAitR2YbZbnsigAZMW5pSFTkDAe5JNaNOH5JfA="; hash = "sha256-O5K5aNcWwUYkaJbGzTzS3FdNbEsQsdliyi0YShw+6PU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -53,35 +55,34 @@ stdenv.mkDerivation rec {
rustPlatform.cargoSetupHook rustPlatform.cargoSetupHook
rustc rustc
wrapGAppsHook4 wrapGAppsHook4
cmake
]; ];
buildInputs = [ buildInputs =
dbus [
gdk-pixbuf dbus
glib gdk-pixbuf
gtk4 glib
libadwaita gtk4
openssl libadwaita
sqlite openssl
libshumate sqlite
] ++ (with gst_all_1; [ libshumate
gstreamer libseccomp
gst-plugins-base lcms2
gst-plugins-good ]
gst-plugins-bad ++ (with gst_all_1; [
]); gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);
meta = with lib; { meta = {
homepage = "https://gitlab.gnome.org/World/Shortwave"; homepage = "https://gitlab.gnome.org/World/Shortwave";
description = "Find and listen to internet radio stations"; description = "Find and listen to internet radio stations";
mainProgram = "shortwave"; mainProgram = "shortwave";
longDescription = '' maintainers = with lib.maintainers; [ lasandell ];
Shortwave is a streaming audio player designed for the GNOME license = lib.licenses.gpl3Plus;
desktop. It is the successor to the older Gradio application. platforms = lib.platforms.linux;
'';
maintainers = with maintainers; [ lasandell ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
}; };
} }