2024-06-26 00:39:47 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
2024-06-26 00:41:36 +00:00
|
|
|
alsa-lib,
|
2024-06-26 00:46:09 +00:00
|
|
|
appstream-glib,
|
2024-06-26 00:41:36 +00:00
|
|
|
blueprint-compiler,
|
2024-12-04 06:28:10 +00:00
|
|
|
cargo,
|
2024-06-26 00:41:36 +00:00
|
|
|
desktop-file-utils,
|
2024-12-04 06:28:10 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-26 00:41:36 +00:00
|
|
|
gettext,
|
2024-06-26 00:39:47 +00:00
|
|
|
glib,
|
2024-06-26 00:41:36 +00:00
|
|
|
gst_all_1,
|
|
|
|
gtk4,
|
2024-06-26 00:39:47 +00:00
|
|
|
libadwaita,
|
|
|
|
libhandy,
|
2024-12-04 06:28:10 +00:00
|
|
|
libpulseaudio,
|
2024-06-26 00:41:36 +00:00
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
nix-update-script,
|
2024-06-26 00:39:47 +00:00
|
|
|
openssl,
|
2024-06-26 00:41:36 +00:00
|
|
|
pkg-config,
|
2024-12-04 06:28:10 +00:00
|
|
|
rustPlatform,
|
|
|
|
rustc,
|
2024-06-26 00:39:47 +00:00
|
|
|
wrapGAppsHook4,
|
2021-05-11 15:46:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spot";
|
2024-12-04 06:28:10 +00:00
|
|
|
version = "0.5.0";
|
2021-05-11 15:46:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xou816";
|
|
|
|
repo = "spot";
|
2024-12-04 06:28:10 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-7zWK0wkh53ojnoznv4T/X//JeyKJVKOrfYF0IkvciIY=";
|
2021-05-11 15:46:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
2024-12-04 06:28:10 +00:00
|
|
|
inherit pname version src;
|
|
|
|
hash = "sha256-AaRmTOgFmBi0s1zdIVHc6bLjrUopy9YuB3GJOCnbjU4=";
|
2021-05-11 15:46:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-06-26 00:46:09 +00:00
|
|
|
appstream-glib
|
2024-06-26 00:41:36 +00:00
|
|
|
blueprint-compiler
|
2024-12-04 06:28:10 +00:00
|
|
|
cargo
|
2024-06-26 00:41:36 +00:00
|
|
|
desktop-file-utils
|
2021-05-11 15:46:29 +00:00
|
|
|
gettext
|
2024-06-26 00:41:36 +00:00
|
|
|
glib # for glib-compile-schemas
|
2024-12-04 06:28:10 +00:00
|
|
|
gtk4 # for gtk-update-icon-cache
|
2021-05-11 15:46:29 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.cargoSetupHook
|
2024-12-04 06:28:10 +00:00
|
|
|
rustc
|
2022-10-09 17:53:38 +00:00
|
|
|
wrapGAppsHook4
|
2021-05-11 15:46:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-06-26 00:41:36 +00:00
|
|
|
alsa-lib
|
2021-05-11 15:46:29 +00:00
|
|
|
glib
|
2024-06-26 00:41:36 +00:00
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gstreamer
|
2021-09-28 12:17:04 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2021-05-11 15:46:29 +00:00
|
|
|
libhandy
|
|
|
|
libpulseaudio
|
2024-06-26 00:41:36 +00:00
|
|
|
openssl
|
2021-05-11 15:46:29 +00:00
|
|
|
];
|
|
|
|
|
2021-09-27 09:11:59 +00:00
|
|
|
# https://github.com/xou816/spot/issues/313
|
2021-09-18 11:28:26 +00:00
|
|
|
mesonBuildType = "release";
|
|
|
|
|
2021-05-11 15:46:29 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-05-11 15:46:29 +00:00
|
|
|
};
|
|
|
|
|
2024-06-26 00:41:36 +00:00
|
|
|
meta = {
|
2021-05-11 15:46:29 +00:00
|
|
|
description = "Native Spotify client for the GNOME desktop";
|
|
|
|
homepage = "https://github.com/xou816/spot";
|
2024-06-26 00:41:36 +00:00
|
|
|
changelog = "https://github.com/xou816/spot/releases/tag/${src.rev}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
|
|
mainProgram = "spot";
|
|
|
|
platforms = lib.platforms.linux;
|
2021-05-11 15:46:29 +00:00
|
|
|
};
|
|
|
|
}
|