94 lines
1.6 KiB
Nix
94 lines
1.6 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitLab,
|
|
cargo,
|
|
dbus,
|
|
desktop-file-utils,
|
|
gdk-pixbuf,
|
|
gettext,
|
|
gitMinimal,
|
|
glib,
|
|
gst_all_1,
|
|
gtk4,
|
|
libadwaita,
|
|
meson,
|
|
ninja,
|
|
openssl,
|
|
pkg-config,
|
|
rustPlatform,
|
|
rustc,
|
|
sqlite,
|
|
wrapGAppsHook4,
|
|
libshumate,
|
|
libseccomp,
|
|
lcms2,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "shortwave";
|
|
version = "5.0.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "Shortwave";
|
|
rev = version;
|
|
sha256 = "sha256-MbkfbpX2av/o+wC1pORHfaLXnchEIFmhQ5mqPuMElak=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit pname version src;
|
|
hash = "sha256-DBWg9Xss1ChbPyI3MiN7eTXhSUG37ZaYS/HFxou9d/w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gettext
|
|
gitMinimal
|
|
glib # for glib-compile-schemas
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
cargo
|
|
rustPlatform.cargoSetupHook
|
|
rustc
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
dbus
|
|
gdk-pixbuf
|
|
glib
|
|
gtk4
|
|
libadwaita
|
|
openssl
|
|
sqlite
|
|
libshumate
|
|
libseccomp
|
|
lcms2
|
|
]
|
|
++ (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-bad
|
|
]);
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://gitlab.gnome.org/World/Shortwave";
|
|
description = "Find and listen to internet radio stations";
|
|
mainProgram = "shortwave";
|
|
maintainers = with lib.maintainers; [ lasandell ];
|
|
teams = [ lib.teams.gnome-circle ];
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|