2020-09-25 04:45:31 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitoxide";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.4.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Byron";
|
|
|
|
repo = "gitoxide";
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0sx3z9l9n9qq2zj91pgm7znhxjsj59zvwms3aivfglhawwj3iwyj";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
cargoSha256 = "0ykkh86p4csi0v3pb2idjk94w9m32a34a5qrvna7ml5yz84m8hva";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
# Needed to get openssl-sys to use pkgconfig.
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"A command-line application for interacting with git repositories";
|
|
|
|
homepage = "https://github.com/Byron/gitoxide";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = [ maintainers.syberant ];
|
|
|
|
};
|
|
|
|
}
|