2021-05-10 03:40:00 +01:00
|
|
|
{ lib, stdenv, rustPlatform, cmake, fetchFromGitHub, pkg-config, openssl, Security }:
|
2020-08-16 07:26:59 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitoxide";
|
2021-05-10 03:40:00 +01:00
|
|
|
version = "0.7.0";
|
2020-08-16 07:26:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Byron";
|
|
|
|
repo = "gitoxide";
|
|
|
|
rev = "v${version}";
|
2021-05-10 03:40:00 +01:00
|
|
|
sha256 = "12f5qrrfjfqp1aph2nmfi9nyzs1ndvgrb3y53mrszm9kf7fa6pyg";
|
2020-08-16 07:26:59 +01:00
|
|
|
};
|
|
|
|
|
2021-05-10 03:40:00 +01:00
|
|
|
cargoSha256 = "0gw19zdxbkgnj1kcyqn1naj1dnhsx10j860m0xgs5z7bbvfg82p6";
|
2020-09-13 20:08:17 +01:00
|
|
|
|
2021-05-10 03:40:00 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-12-30 02:05:47 +00:00
|
|
|
buildInputs = [ openssl ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2020-09-13 20:08:17 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
2020-09-13 20:08:17 +01:00
|
|
|
OPENSSL_NO_VENDOR = 1;
|
2020-08-16 07:26:59 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-30 02:05:47 +00:00
|
|
|
description = "A command-line application for interacting with git repositories";
|
2020-08-16 07:26:59 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|