13da32182d
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, stdenv
|
|
, libiconv
|
|
, Security
|
|
, SystemConfiguration
|
|
, openssl
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gitoxide";
|
|
version = "0.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Byron";
|
|
repo = "gitoxide";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-lppg5x2VMzRo4SqAFgtiklc1WfTXi/jty92Z91CxZPM=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-j4riS3OzfbEriAlqcjq6GcyTrK5sjFEopMesmWTGxp4=";
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = if stdenv.isDarwin
|
|
then [ libiconv Security SystemConfiguration ]
|
|
else [ openssl ];
|
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
meta = with lib; {
|
|
description = "A command-line application for interacting with git repositories";
|
|
homepage = "https://github.com/Byron/gitoxide";
|
|
changelog = "https://github.com/Byron/gitoxide/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ syberant ];
|
|
};
|
|
}
|