biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / shortwave / default.nix
blobc1f3f53416fd75fb173cb773031a3a56be6c97d3
1 { stdenv
2 , lib
3 , fetchFromGitLab
4 , cargo
5 , dbus
6 , desktop-file-utils
7 , gdk-pixbuf
8 , gettext
9 , gitMinimal
10 , glib
11 , gst_all_1
12 , gtk4
13 , libadwaita
14 , meson
15 , ninja
16 , openssl
17 , pkg-config
18 , rustPlatform
19 , rustc
20 , sqlite
21 , wrapGAppsHook4
22 , cmake
23 , libshumate
26 stdenv.mkDerivation rec {
27   pname = "shortwave";
28   version = "3.2.0";
30   src = fetchFromGitLab {
31     domain = "gitlab.gnome.org";
32     owner = "World";
33     repo = "Shortwave";
34     rev = version;
35     sha256 = "sha256-ESZ1yD1IuBar8bv83xMczZbtPtHbWRpe2yMVyr7K5gQ=";
36   };
38   cargoDeps = rustPlatform.fetchCargoTarball {
39     inherit src;
40     name = "${pname}-${version}";
41     hash = "sha256-8W46bGAitR2YbZbnsigAZMW5pSFTkDAe5JNaNOH5JfA=";
42   };
44   nativeBuildInputs = [
45     desktop-file-utils
46     gettext
47     gitMinimal
48     glib # for glib-compile-schemas
49     meson
50     ninja
51     pkg-config
52     cargo
53     rustPlatform.cargoSetupHook
54     rustc
55     wrapGAppsHook4
56     cmake
57   ];
59   buildInputs = [
60     dbus
61     gdk-pixbuf
62     glib
63     gtk4
64     libadwaita
65     openssl
66     sqlite
67     libshumate
68   ] ++ (with gst_all_1; [
69     gstreamer
70     gst-plugins-base
71     gst-plugins-good
72     gst-plugins-bad
73   ]);
75   meta = with lib; {
76     homepage = "https://gitlab.gnome.org/World/Shortwave";
77     description = "Find and listen to internet radio stations";
78     mainProgram = "shortwave";
79     longDescription = ''
80       Shortwave is a streaming audio player designed for the GNOME
81       desktop. It is the successor to the older Gradio application.
82     '';
83     maintainers = with maintainers; [ lasandell ];
84     license = licenses.gpl3Plus;
85     platforms = platforms.linux;
86   };