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 13:00:11 +01:00
, gtk4
, libadwaita
2020-03-22 19:56:22 +00:00
, meson
, ninja
, openssl
, pkg-config
, rustPlatform
, sqlite
2022-04-25 01:51:09 +01: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";
2022-04-25 01:51:09 +01:00
version = "3.0.0";
2020-03-22 19:56:22 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "Shortwave";
rev = version;
2022-04-25 01:51:09 +01:00
sha256 = "sha256-qwk63o9pfqpAm6l9ioj3RccacemQU8R6LF6El4yHkjQ";
2020-03-22 19:56:22 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2022-04-25 01:51:09 +01:00
hash = "sha256-YrB322nv9CgZqt5//VMvVwjWA51ePlX2PI6raRJGBxA=";
};
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 01:51:09 +01:00
wrapGAppsHook4
cmake
2020-03-22 19:56:22 +00:00
];
buildInputs = [
dbus
gdk-pixbuf
glib
2021-06-22 13:00:11 +01:00
gtk4
libadwaita
2020-03-22 19:56:22 +00:00
openssl
sqlite
2022-04-25 01:51:09 +01: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;
};
}