From f5ca57b6d909b8224acdacfcc587537e169e6683 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 20 May 2018 17:55:21 -0500 Subject: [PATCH] powerline-rs: Fix darwin build (#40840) --- pkgs/tools/misc/powerline-rs/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/powerline-rs/default.nix b/pkgs/tools/misc/powerline-rs/default.nix index e48816db935a..138145683cb8 100644 --- a/pkgs/tools/misc/powerline-rs/default.nix +++ b/pkgs/tools/misc/powerline-rs/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromGitHub, pkgconfig, file, perl, cmake, openssl_1_1_0, libssh2, libgit2, libzip }: +{ stdenv, lib, rustPlatform, fetchFromGitHub, pkgconfig, file, perl, curl, cmake, openssl_1_1_0, libssh2, libgit2, libzip, Security }: rustPlatform.buildRustPackage rec { pname = "powerline-rs"; name = "${pname}-${version}"; @@ -14,8 +14,8 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "184s432a6damzvl0lv6jar1iml9dq60r190aqjy44lcg938981zc"; - nativeBuildInputs = [ pkgconfig file perl cmake ]; - buildInputs = [ openssl_1_1_0 libssh2 libgit2 libzip ]; + nativeBuildInputs = [ pkgconfig file perl cmake curl ]; + buildInputs = [ openssl_1_1_0 libssh2 libgit2 libzip ] ++ lib.optional stdenv.isDarwin Security; postInstall = '' install -Dm 755 "${pname}.bash" "$out/etc/bash_completion.d/${pname}" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ebedcec4fe8..d2b566ab5f62 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14632,7 +14632,9 @@ with pkgs; powerline-go = callPackage ../tools/misc/powerline-go { }; - powerline-rs = callPackage ../tools/misc/powerline-rs { }; + powerline-rs = callPackage ../tools/misc/powerline-rs { + inherit (darwin.apple_sdk.frameworks) Security; + }; profont = callPackage ../data/fonts/profont { };