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.

87 lines
1.6 KiB
Nix
Raw Normal View History

2024-06-26 00:39:47 +00:00
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
cargo,
2024-06-26 00:39:47 +00:00
rustc,
alsa-lib,
blueprint-compiler,
desktop-file-utils,
gettext,
2024-06-26 00:39:47 +00:00
glib,
gst_all_1,
gtk4,
2024-06-26 00:39:47 +00:00
libadwaita,
libpulseaudio,
2024-06-26 00:39:47 +00:00
libhandy,
meson,
ninja,
nix-update-script,
2024-06-26 00:39:47 +00:00
openssl,
pkg-config,
2024-06-26 00:39:47 +00:00
wrapGAppsHook4,
2021-05-11 15:46:29 +00:00
}:
stdenv.mkDerivation rec {
pname = "spot";
2024-04-10 19:15:14 +00:00
version = "0.4.1";
2021-05-11 15:46:29 +00:00
src = fetchFromGitHub {
owner = "xou816";
repo = "spot";
rev = version;
2024-04-10 19:15:14 +00:00
hash = "sha256-F875e/VZyN8mTfe9lgjtILNxMqn+66XoPCdaEUagHyU=";
2021-05-11 15:46:29 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2024-04-10 19:15:14 +00:00
hash = "sha256-45Rqs2/tSWoyZVjFuygR5SxldjoqpprtOKEnMqJK+p8=";
2021-05-11 15:46:29 +00:00
};
nativeBuildInputs = [
cargo
rustc
blueprint-compiler
desktop-file-utils
2021-05-11 15:46:29 +00:00
gettext
gtk4 # for gtk-update-icon-cache
glib # for glib-compile-schemas
2021-05-11 15:46:29 +00:00
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
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
};
}