nixpkgs/pkgs/applications/audio/shortwave/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2020-03-22 19:56:22 +00:00
, fetchFromGitLab
, dbus
, desktop-file-utils
, gdk-pixbuf
, gettext
, 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
, sqlite
2022-04-25 00:51:09 +00:00
, wrapGAppsHook4
, cmake
, libshumate
2020-03-22 19:56:22 +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
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2023-02-07 05:14:31 +00:00
hash = "sha256-8W46bGAitR2YbZbnsigAZMW5pSFTkDAe5JNaNOH5JfA=";
};
2020-03-22 19:56:22 +00:00
nativeBuildInputs = [
desktop-file-utils
gettext
gitMinimal
2020-03-22 19:56:22 +00:00
glib # for glib-compile-schemas
meson
ninja
pkg-config
rustPlatform.rust.cargo
rustPlatform.cargoSetupHook
rustPlatform.rust.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
]);
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;
};
}