@@ -1,4 +1,4 @@
1−{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip }:
1+{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip, pkg-config }:
22rustPlatform.buildRustPackage rec {
33 pname = "gitui";
44 version = "0.17.1";
@@ -12,11 +12,14 @@ rustPlatform.buildRustPackage rec {
1212
1313 cargoSha256 = "sha256-9uRvxax0SrvRkD89mbZPxsfRItde11joA/ZgnXK9XBE=";
1414
15− nativeBuildInputs = [ python3 perl ];
15+ nativeBuildInputs = [ python3 perl pkg-config ];
1616 buildInputs = [ openssl ]
1717 ++ lib.optional stdenv.isLinux xclip
1818 ++ lib.optionals stdenv.isDarwin [ libiconv Security AppKit ];
1919
20+ # Needed to get openssl-sys to use pkg-config.
21+ OPENSSL_NO_VENDOR = 1;
22+
2023 meta = with lib; {
2124 description = "Blazing fast terminal-ui for git written in rust";
2225 homepage = "https://github.com/extrawurst/gitui";