diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2018-05-20 17:55:21 -0500 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-05-21 00:55:21 +0200 |
commit | f5ca57b6d909b8224acdacfcc587537e169e6683 (patch) | |
tree | 5da7507e152e7767ed22cdeb37d7a09404ec3af7 /pkgs | |
parent | d6a68d4b2da826b90e925813828ff4729ee7c5ea (diff) |
powerline-rs: Fix darwin build (#40840)
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/powerline-rs/default.nix | 6 | ||||
-rw-r--r-- | 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 e48816db935a9..138145683cb84 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 1ebedcec4fe84..d2b566ab5f627 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 { }; |