aws-lc: 1.39.0 -> 1.42.0 (#369942)
[NixPkgs.git] / pkgs / by-name / sp / spot / package.nix
blob8e40e70a51ada765d171497d3e07ea810ac43ac6
2   lib,
3   stdenv,
4   alsa-lib,
5   appstream-glib,
6   blueprint-compiler,
7   cargo,
8   desktop-file-utils,
9   fetchFromGitHub,
10   gettext,
11   glib,
12   gst_all_1,
13   gtk4,
14   libadwaita,
15   libhandy,
16   libpulseaudio,
17   meson,
18   ninja,
19   nix-update-script,
20   openssl,
21   pkg-config,
22   rustPlatform,
23   rustc,
24   wrapGAppsHook4,
27 stdenv.mkDerivation rec {
28   pname = "spot";
29   version = "0.5.0";
31   src = fetchFromGitHub {
32     owner = "xou816";
33     repo = "spot";
34     rev = "refs/tags/${version}";
35     hash = "sha256-7zWK0wkh53ojnoznv4T/X//JeyKJVKOrfYF0IkvciIY=";
36   };
38   cargoDeps = rustPlatform.fetchCargoTarball {
39     inherit pname version src;
40     hash = "sha256-AaRmTOgFmBi0s1zdIVHc6bLjrUopy9YuB3GJOCnbjU4=";
41   };
43   nativeBuildInputs = [
44     appstream-glib
45     blueprint-compiler
46     cargo
47     desktop-file-utils
48     gettext
49     glib # for glib-compile-schemas
50     gtk4 # for gtk-update-icon-cache
51     meson
52     ninja
53     pkg-config
54     rustPlatform.cargoSetupHook
55     rustc
56     wrapGAppsHook4
57   ];
59   buildInputs = [
60     alsa-lib
61     glib
62     gst_all_1.gst-plugins-base
63     gst_all_1.gstreamer
64     gtk4
65     libadwaita
66     libhandy
67     libpulseaudio
68     openssl
69   ];
71   # https://github.com/xou816/spot/issues/313
72   mesonBuildType = "release";
74   passthru = {
75     updateScript = nix-update-script { };
76   };
78   meta = {
79     description = "Native Spotify client for the GNOME desktop";
80     homepage = "https://github.com/xou816/spot";
81     changelog = "https://github.com/xou816/spot/releases/tag/${src.rev}";
82     license = lib.licenses.mit;
83     maintainers = with lib.maintainers; [ getchoo ];
84     mainProgram = "spot";
85     platforms = lib.platforms.linux;
86   };