From c880884656ef8ae550217269f717a73e1a9a67d4 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 12 Oct 2019 18:28:15 +0200 Subject: [PATCH] spotify-tui: fix darwin build --- pkgs/applications/audio/spotify-tui/default.nix | 7 ++++--- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/audio/spotify-tui/default.nix b/pkgs/applications/audio/spotify-tui/default.nix index 441d0efcb52..14c9a88d4e4 100644 --- a/pkgs/applications/audio/spotify-tui/default.nix +++ b/pkgs/applications/audio/spotify-tui/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl }: +{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, Security }: rustPlatform.buildRustPackage rec { pname = "spotify-tui"; @@ -12,9 +12,10 @@ rustPlatform.buildRustPackage rec { }; cargoSha256 = "029g80mcqvmckszpbzm4hxs5w63n41ah4rc1b93i9c1nzvncd811"; - + nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] + ++ stdenv.lib.optional stdenv.isDarwin Security; meta = with stdenv.lib; { description = "Spotify for the terminal written in Rust"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 788bb62169f..770fba7b7ac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20676,7 +20676,9 @@ in split2flac = callPackage ../applications/audio/split2flac { }; - spotify-tui = callPackage ../applications/audio/spotify-tui { }; + spotify-tui = callPackage ../applications/audio/spotify-tui { + inherit (darwin.apple_sdk.frameworks) Security; + }; squishyball = callPackage ../applications/audio/squishyball { ncurses = ncurses5;