2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, libiconv
|
|
|
|
, Security
|
|
|
|
, SystemConfiguration
|
|
|
|
, openssl
|
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitoxide";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.14.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Byron";
|
|
|
|
repo = "gitoxide";
|
|
|
|
rev = "v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-lppg5x2VMzRo4SqAFgtiklc1WfTXi/jty92Z91CxZPM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
cargoSha256 = "sha256-j4riS3OzfbEriAlqcjq6GcyTrK5sjFEopMesmWTGxp4=";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = if stdenv.isDarwin
|
2021-10-28 06:52:43 +00:00
|
|
|
then [ libiconv Security SystemConfiguration ]
|
2021-05-20 23:08:51 +00:00
|
|
|
else [ openssl ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
2020-09-25 04:45:31 +00:00
|
|
|
OPENSSL_NO_VENDOR = 1;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-05 17:05:55 +00:00
|
|
|
description = "A command-line application for interacting with git repositories";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/Byron/gitoxide";
|
2021-10-28 06:52:43 +00:00
|
|
|
changelog = "https://github.com/Byron/gitoxide/blob/v${version}/CHANGELOG.md";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
2021-10-28 06:52:43 +00:00
|
|
|
maintainers = with maintainers; [ syberant ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|