{ lib , rustPlatform , fetchFromGitHub , cmake , pkg-config , stdenv , libiconv , Security , SystemConfiguration , openssl }: rustPlatform.buildRustPackage rec { pname = "gitoxide"; version = "0.16.0"; src = fetchFromGitHub { owner = "Byron"; repo = "gitoxide"; rev = "v${version}"; sha256 = "sha256-4Yk3WXkm8jdabEisGKqVQlzjFrrf3pskRmuPa5K4vw4="; }; cargoSha256 = "sha256-mX58cb1Ywr7npmxgynDQ1x1PmO/62Bd+bONdv/Y1I2Q="; nativeBuildInputs = [ cmake pkg-config ]; buildInputs = if stdenv.isDarwin then [ libiconv Security SystemConfiguration ] else [ openssl ]; # Needed to get openssl-sys to use pkg-config. OPENSSL_NO_VENDOR = 1; meta = with lib; { description = "A command-line application for interacting with git repositories"; homepage = "https://github.com/Byron/gitoxide"; changelog = "https://github.com/Byron/gitoxide/blob/v${version}/CHANGELOG.md"; license = with licenses; [ mit /* or */ asl20 ]; maintainers = with maintainers; [ syberant ]; }; }