nixpkgs/pkgs/applications/version-management/gitoxide/default.nix

32 lines
916 B
Nix
Raw Normal View History

2021-05-15 19:42:38 +00:00
{ lib, stdenv, rustPlatform, cmake, fetchFromGitHub, pkg-config, openssl
2021-09-17 12:05:50 +00:00
, libiconv, Security, SystemConfiguration }:
rustPlatform.buildRustPackage rec {
pname = "gitoxide";
2021-09-17 12:05:50 +00:00
version = "0.8.4";
src = fetchFromGitHub {
owner = "Byron";
repo = "gitoxide";
rev = "v${version}";
2021-09-17 12:05:50 +00:00
sha256 = "WH8YiW1X7TkURjncm0OefxrZhnhGHaGLwxRNxe17g/0=";
};
2021-09-17 12:05:50 +00:00
cargoSha256 = "eTPJMYl9m81o4PJKfpDs61KmehSvKnY+bgybEodOhAM=";
2021-05-10 02:40:00 +00:00
nativeBuildInputs = [ cmake pkg-config ];
2021-05-15 19:42:38 +00:00
buildInputs = if stdenv.isDarwin
2021-09-17 12:05:50 +00:00
then [ libiconv Security SystemConfiguration]
2021-05-15 19:42:38 +00:00
else [ openssl ];
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
meta = with lib; {
2020-12-30 02:05:47 +00:00
description = "A command-line application for interacting with git repositories";
homepage = "https://github.com/Byron/gitoxide";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = [ maintainers.syberant ];
};
}