mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
spotifyd: fix build on darwin
https://hydra.nixos.org/build/292251532 https://hydra.nixos.org/build/292251536
This commit is contained in:
parent
45c96da39c
commit
cb26bef282
1 changed files with 10 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
stdenv,
|
||||
config,
|
||||
alsa-lib,
|
||||
apple-sdk_11,
|
||||
cmake,
|
||||
dbus,
|
||||
fetchFromGitHub,
|
||||
|
@ -42,7 +43,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
];
|
||||
|
||||
buildInputs =
|
||||
lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
|
||||
lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
|
||||
# The `dbus_mpris` feature works on other platforms, but only requires `dbus` on Linux
|
||||
++ lib.optional (withMpris && stdenv.hostPlatform.isLinux) dbus
|
||||
++ lib.optional (withALSA || withJack) alsa-lib
|
||||
|
@ -61,6 +63,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
++ lib.optional withPortAudio "portaudio_backend"
|
||||
++ lib.optional withPulseAudio "pulseaudio_backend";
|
||||
|
||||
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# `assertion failed: shell.is_some()`
|
||||
# Internally it's trying to query the user's shell through `dscl`. This is bad
|
||||
# https://github.com/Spotifyd/spotifyd/blob/8777c67988508d3623d3f6b81c9379fb071ac7dd/src/utils.rs#L45-L47
|
||||
"--skip=utils::tests::test_ffi_discovery"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
||||
updateScript = nix-update-script { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue