5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, stdenv
|
|
, libiconv
|
|
, Security
|
|
, SystemConfiguration
|
|
, curl
|
|
, openssl
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gitoxide";
|
|
version = "0.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Byron";
|
|
repo = "gitoxide";
|
|
rev = "v${version}";
|
|
hash = "sha256-VJZwNLFePUNIRHEyiEr1tiLaB2tuL6Ah81LNuM/1H14=";
|
|
};
|
|
|
|
cargoHash = "sha256-vEp0wLxmmmv33oRO7eOxOoOsV87/7DQ8db5RUfqUb88=";
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ curl ] ++ (if stdenv.isDarwin
|
|
then [ libiconv Security SystemConfiguration ]
|
|
else [ openssl ]);
|
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
|
env.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 ];
|
|
};
|
|
}
|