3
0
Fork 0
forked from mirrors/nixpkgs

powerline-rs: Fix darwin build (#40840)

This commit is contained in:
Mario Rodas 2018-05-20 17:55:21 -05:00 committed by xeji
parent d6a68d4b2d
commit f5ca57b6d9
2 changed files with 6 additions and 4 deletions

View file

@ -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}"

View file

@ -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 { };