powerline-rs: Fix darwin build (#40840)
This commit is contained in:
parent
d6a68d4b2d
commit
f5ca57b6d9
@ -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 {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "powerline-rs";
|
pname = "powerline-rs";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
@ -14,8 +14,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "184s432a6damzvl0lv6jar1iml9dq60r190aqjy44lcg938981zc";
|
cargoSha256 = "184s432a6damzvl0lv6jar1iml9dq60r190aqjy44lcg938981zc";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig file perl cmake ];
|
nativeBuildInputs = [ pkgconfig file perl cmake curl ];
|
||||||
buildInputs = [ openssl_1_1_0 libssh2 libgit2 libzip ];
|
buildInputs = [ openssl_1_1_0 libssh2 libgit2 libzip ] ++ lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm 755 "${pname}.bash" "$out/etc/bash_completion.d/${pname}"
|
install -Dm 755 "${pname}.bash" "$out/etc/bash_completion.d/${pname}"
|
||||||
|
@ -14632,7 +14632,9 @@ with pkgs;
|
|||||||
|
|
||||||
powerline-go = callPackage ../tools/misc/powerline-go { };
|
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 { };
|
profont = callPackage ../data/fonts/profont { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user