2020-09-13 20:08:17 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
|
2020-08-16 07:26:59 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitoxide";
|
2020-10-18 10:21:55 +01:00
|
|
|
version = "0.4.3";
|
2020-08-16 07:26:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Byron";
|
|
|
|
repo = "gitoxide";
|
|
|
|
rev = "v${version}";
|
2020-10-18 10:21:55 +01:00
|
|
|
sha256 = "0ap5ih4s99c4ah95mcafqsvy4yhfqab6vg1c6ydzfa4czczgcxff";
|
2020-08-16 07:26:59 +01:00
|
|
|
};
|
|
|
|
|
2020-10-18 10:21:55 +01:00
|
|
|
cargoSha256 = "0vj7g2jhvd5d37rcq02hval9axpciwyqyd10z2a0bsvw0r4bh943";
|
2020-09-13 20:08:17 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
# Needed to get openssl-sys to use pkgconfig.
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
2020-08-16 07:26:59 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"A command-line application for interacting with git repositories";
|
|
|
|
homepage = "https://github.com/Byron/gitoxide";
|
2020-09-13 20:08:17 +01:00
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
2020-08-16 07:26:59 +01:00
|
|
|
maintainers = [ maintainers.syberant ];
|
|
|
|
};
|
|
|
|
}
|