git.iko.soy/typeable/nixpkgs
on master help sign in
spotifyd: init at 0.2.11
commite6dd87c438ede050a78b7eeb1539be1af03f4479 authorAnders Lundstedt <git@anderslundstedt.se> dateSat 20 Jul 2019, 19:38 (7 years ago) parentb930e1c
2 files changed+46
pkgs/applications/audio/spotifyd/default.nix+40 pkgs/top-level/all-packages.nix+6
pkgs/applications/audio/spotifyd/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
2+, withALSA ? true, alsaLib ? null
3+, withPulseAudio ? false, libpulseaudio ? null
4+, withPortAudio ? false, portaudio ? null
5+}:
6+
7+rustPlatform.buildRustPackage rec {
8+ pname = "spotifyd";
9+ version = "0.2.11";
10+
11+ src = fetchFromGitHub {
12+ owner = "Spotifyd";
13+ repo = "spotifyd";
14+ rev = "${version}";
15+ sha256 = "1iybk9xrrvhrcl2xl5r2xhyn1ydhrgwnnb8ldhsw5c16b32z03q1";
16+ };
17+
18+ cargoSha256 = "0879p1h32259schmy8j3xnwpw3sw80f8mrj8s6b5aihi3yyzz521";
19+
20+ cargoBuildFlags = [
21+ "--no-default-features"
22+ "--features"
23+ "${stdenv.lib.optionalString withALSA "alsa_backend,"}${stdenv.lib.optionalString withPulseAudio "pulseaudio_backend,"}${stdenv.lib.optionalString withPortAudio "portaudio_backend,"}"
24+ ];
25+
26+ nativeBuildInputs = [ pkgconfig ];
27+
28+ buildInputs = [ openssl ]
29+ ++ stdenv.lib.optional withALSA alsaLib
30+ ++ stdenv.lib.optional withPulseAudio libpulseaudio
31+ ++ stdenv.lib.optional withPortAudio portaudio;
32+
33+ meta = with stdenv.lib; {
34+ description = "An open source Spotify client running as a UNIX daemon";
35+ homepage = "https://github.com/Spotifyd/spotifyd";
36+ license = with licenses; [ gpl3 ];
37+ maintainers = [ maintainers.anderslundstedt ];
38+ platforms = platforms.unix;
39+ };
40+}
pkgs/top-level/all-packages.nix+6
@@ -18496,6 +18496,12 @@ in
1849618496
1849718497 spectral = qt5.callPackage ../applications/networking/instant-messengers/spectral { };
1849818498
18499+ spotifyd = callPackage ../applications/audio/spotifyd {
18500+ withALSA = stdenv.isLinux;
18501+ withPulseAudio = config.pulseaudio or true;
18502+ withPortAudio = stdenv.isDarwin;
18503+ };
18504+
1849918505 super-productivity = callPackage ../applications/networking/super-productivity { };
1850018506
1850118507 wlc = callPackage ../development/libraries/wlc { };