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

30 lines
796 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
rustPlatform.buildRustPackage rec {
pname = "gitoxide";
2020-10-18 10:21:55 +01:00
version = "0.4.3";
src = fetchFromGitHub {
owner = "Byron";
repo = "gitoxide";
rev = "v${version}";
2020-10-18 10:21:55 +01:00
sha256 = "0ap5ih4s99c4ah95mcafqsvy4yhfqab6vg1c6ydzfa4czczgcxff";
};
2020-10-18 10:21:55 +01:00
cargoSha256 = "0vj7g2jhvd5d37rcq02hval9axpciwyqyd10z2a0bsvw0r4bh943";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# Needed to get openssl-sys to use pkgconfig.
OPENSSL_NO_VENDOR = 1;
meta = with lib; {
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 ];
};
}