24 stdenv.mkDerivation rec {
28 src = fetchFromGitHub {
32 hash = "sha256-K6wGWhAUUGsbE4O+z0TmJcJyGarvHgZteY527jfAa90=";
35 cargoDeps = rustPlatform.fetchCargoTarball {
37 name = "${pname}-${version}";
38 hash = "sha256-eM2XLumn4dr2YtyUzBZJADlqdexc1iOaNJUudMlfSUc=";
46 python3 # for meson postinstall script
47 gtk4 # for gtk-update-icon-cache
48 glib # for glib-compile-schemas
51 rustPlatform.cargoSetupHook
66 # https://github.com/xou816/spot/issues/313
67 mesonBuildType = "release";
70 chmod +x build-aux/cargo.sh
71 patchShebangs build-aux/cargo.sh build-aux/meson/postinstall.py
72 substituteInPlace build-aux/meson/postinstall.py \
73 --replace gtk-update-icon-cache gtk4-update-icon-cache
77 updateScript = nix-update-script { };
81 description = "Native Spotify client for the GNOME desktop";
83 homepage = "https://github.com/xou816/spot";
84 license = licenses.mit;
85 maintainers = with maintainers; [ ];
86 platforms = platforms.linux;