2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitoxide";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "0.6.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Byron";
|
|
|
|
repo = "gitoxide";
|
|
|
|
rev = "v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "qt1IN/5+yw5lrQ00YsvXUcUXCxd97EtNf5JvxJVa7uc=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
cargoSha256 = "mitUyf/z7EgjKzFy8ZER8Ceoe9tk6r0ctSYdDG87rIU=";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-01-05 17:05:55 +00:00
|
|
|
buildInputs = [ openssl ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
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";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|