bottom: add gpu recognition, new apple sdk, refactor (#360568)
[NixPkgs.git] / pkgs / by-name / sh / shortwave / package.nix
blob7bca94ab44dde321c8a49d3d3addbcfdfc1b46d3
2   stdenv,
3   lib,
4   fetchFromGitLab,
5   cargo,
6   dbus,
7   desktop-file-utils,
8   gdk-pixbuf,
9   gettext,
10   gitMinimal,
11   glib,
12   gst_all_1,
13   gtk4,
14   libadwaita,
15   meson,
16   ninja,
17   openssl,
18   pkg-config,
19   rustPlatform,
20   rustc,
21   sqlite,
22   wrapGAppsHook4,
23   libshumate,
24   libseccomp,
25   lcms2,
28 stdenv.mkDerivation rec {
29   pname = "shortwave";
30   version = "4.0.1";
32   src = fetchFromGitLab {
33     domain = "gitlab.gnome.org";
34     owner = "World";
35     repo = "Shortwave";
36     rev = version;
37     sha256 = "sha256-W1eOMyiooDesI13lOze/JcxzhSSxYOW6FOY85NkVyps=";
38   };
40   cargoDeps = rustPlatform.fetchCargoTarball {
41     inherit src;
42     name = "${pname}-${version}";
43     hash = "sha256-O5K5aNcWwUYkaJbGzTzS3FdNbEsQsdliyi0YShw+6PU=";
44   };
46   nativeBuildInputs = [
47     desktop-file-utils
48     gettext
49     gitMinimal
50     glib # for glib-compile-schemas
51     meson
52     ninja
53     pkg-config
54     cargo
55     rustPlatform.cargoSetupHook
56     rustc
57     wrapGAppsHook4
58   ];
60   buildInputs =
61     [
62       dbus
63       gdk-pixbuf
64       glib
65       gtk4
66       libadwaita
67       openssl
68       sqlite
69       libshumate
70       libseccomp
71       lcms2
72     ]
73     ++ (with gst_all_1; [
74       gstreamer
75       gst-plugins-base
76       gst-plugins-good
77       gst-plugins-bad
78     ]);
80   meta = {
81     homepage = "https://gitlab.gnome.org/World/Shortwave";
82     description = "Find and listen to internet radio stations";
83     mainProgram = "shortwave";
84     maintainers = with lib.maintainers; [ lasandell ] ++ lib.teams.gnome-circle.members;
85     license = lib.licenses.gpl3Plus;
86     platforms = lib.platforms.linux;
87   };