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

30 lines
843 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "gitoxide";
2020-12-29 21:29:44 +00:00
version = "0.6.0";
src = fetchFromGitHub {
owner = "Byron";
repo = "gitoxide";
rev = "v${version}";
2020-12-29 21:29:44 +00:00
sha256 = "qt1IN/5+yw5lrQ00YsvXUcUXCxd97EtNf5JvxJVa7uc=";
};
2020-12-29 21:29:44 +00:00
cargoSha256 = "mitUyf/z7EgjKzFy8ZER8Ceoe9tk6r0ctSYdDG87rIU=";
nativeBuildInputs = [ 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 ];
# 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 ];
};
}