nixpkgs/pkgs/by-name/sp/spot/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
1.6 KiB
Nix
Raw Normal View History

2024-06-26 00:39:47 +00:00
{
lib,
stdenv,
alsa-lib,
appstream-glib,
blueprint-compiler,
cargo,
desktop-file-utils,
fetchFromGitHub,
gettext,
2024-06-26 00:39:47 +00:00
glib,
gst_all_1,
gtk4,
2024-06-26 00:39:47 +00:00
libadwaita,
libhandy,
libpulseaudio,
meson,
ninja,
nix-update-script,
2024-06-26 00:39:47 +00:00
openssl,
pkg-config,
rustPlatform,
rustc,
2024-06-26 00:39:47 +00:00
wrapGAppsHook4,
2021-05-11 15:46:29 +00:00
}:
stdenv.mkDerivation rec {
pname = "spot";
version = "0.5.0";
2021-05-11 15:46:29 +00:00
src = fetchFromGitHub {
owner = "xou816";
repo = "spot";
rev = "refs/tags/${version}";
hash = "sha256-7zWK0wkh53ojnoznv4T/X//JeyKJVKOrfYF0IkvciIY=";
2021-05-11 15:46:29 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit pname version src;
hash = "sha256-AaRmTOgFmBi0s1zdIVHc6bLjrUopy9YuB3GJOCnbjU4=";
2021-05-11 15:46:29 +00:00
};
nativeBuildInputs = [
appstream-glib
blueprint-compiler
cargo
desktop-file-utils
2021-05-11 15:46:29 +00:00
gettext
glib # for glib-compile-schemas
gtk4 # for gtk-update-icon-cache
2021-05-11 15:46:29 +00:00
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
2022-10-09 17:53:38 +00:00
wrapGAppsHook4
2021-05-11 15:46:29 +00:00
];
buildInputs = [
alsa-lib
2021-05-11 15:46:29 +00:00
glib
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
openssl
2021-05-11 15:46:29 +00:00
];
# https://github.com/xou816/spot/issues/313
mesonBuildType = "release";
2021-05-11 15:46:29 +00:00
passthru = {
updateScript = nix-update-script { };
2021-05-11 15:46:29 +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";
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
};
}