2021-05-11 15:46:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
2021-09-28 12:17:04 +00:00
|
|
|
, libadwaita
|
2021-05-11 15:46:29 +00:00
|
|
|
, libhandy
|
2021-09-28 12:17:04 +00:00
|
|
|
, gtk4
|
2021-05-11 15:46:29 +00:00
|
|
|
, openssl
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2021-05-11 15:46:29 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spot";
|
2022-01-27 20:15:32 +00:00
|
|
|
version = "0.3.1";
|
2021-05-11 15:46:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xou816";
|
|
|
|
repo = "spot";
|
|
|
|
rev = version;
|
2022-01-27 20:15:32 +00:00
|
|
|
hash = "sha256-uZzylK9imEazwC/ogsDO8ZBvByE5/SNSV+mIlp7Z9Ww=";
|
2021-05-11 15:46:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2022-01-27 20:15:32 +00:00
|
|
|
hash = "sha256-v5xdlsI6OlEpCYOTFePTyI8BkIrAwT6FR2JwiRTGgOA=";
|
2021-05-11 15:46:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3 # for meson postinstall script
|
2021-09-28 12:17:04 +00:00
|
|
|
gtk4 # for gtk-update-icon-cache
|
2021-05-11 15:46:29 +00:00
|
|
|
glib # for glib-compile-schemas
|
|
|
|
desktop-file-utils
|
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.rustc
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2021-09-28 12:17:04 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2021-05-11 15:46:29 +00:00
|
|
|
libhandy
|
|
|
|
openssl
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2021-05-11 15:46:29 +00:00
|
|
|
libpulseaudio
|
|
|
|
];
|
|
|
|
|
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
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/cargo.sh
|
|
|
|
patchShebangs build-aux/cargo.sh build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Native Spotify client for the GNOME desktop";
|
|
|
|
homepage = "https://github.com/xou816/spot";
|
|
|
|
license = licenses.mit;
|
2021-09-28 12:17:04 +00:00
|
|
|
maintainers = with maintainers; [ jtojnar tomfitzhenry ];
|
2021-05-11 15:46:29 +00:00
|
|
|
};
|
|
|
|
}
|