eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
|
|
, withALSA ? true, alsaLib ? null
|
|
, withPulseAudio ? false, libpulseaudio ? null
|
|
, withPortAudio ? false, portaudio ? null
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "spotifyd";
|
|
version = "0.2.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Spotifyd";
|
|
repo = "spotifyd";
|
|
rev = "v${version}";
|
|
sha256 = "08i0zm7kgprixqjpgaxk7xid1njgj6lmi896jf9fsjqzdzlblqk8";
|
|
};
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "0kl8xl2qhzf8wb25ajw59frgym62lkg7p72d8z0xmkqjjcg2nyib";
|
|
|
|
cargoBuildFlags = [
|
|
"--no-default-features"
|
|
"--features"
|
|
"${stdenv.lib.optionalString withALSA "alsa_backend,"}${stdenv.lib.optionalString withPulseAudio "pulseaudio_backend,"}${stdenv.lib.optionalString withPortAudio "portaudio_backend,"}"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ stdenv.lib.optional withALSA alsaLib
|
|
++ stdenv.lib.optional withPulseAudio libpulseaudio
|
|
++ stdenv.lib.optional withPortAudio portaudio;
|
|
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An open source Spotify client running as a UNIX daemon";
|
|
homepage = "https://github.com/Spotifyd/spotifyd";
|
|
license = with licenses; [ gpl3 ];
|
|
maintainers = with maintainers; [ anderslundstedt filalex77 marsam ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|