3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/gitoxide/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1 KiB
Nix
Raw Normal View History

2021-10-22 15:51:22 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, cmake
, pkg-config
, stdenv
, libiconv
, Security
, SystemConfiguration
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "gitoxide";
2021-10-22 15:51:22 +01:00
version = "0.10.0";
src = fetchFromGitHub {
owner = "Byron";
repo = "gitoxide";
rev = "v${version}";
2021-10-22 15:51:22 +01:00
sha256 = "sha256-c29gmmkIOyS+HNq2kv53yq+sdEDmQbSmcvVGcd55/hk=";
};
2021-10-22 15:51:22 +01:00
cargoSha256 = "sha256-oc7XpiOZj4bfqdwrEHj/CzNtWzYWFkgMJOySJNgxAGQ=";
2021-05-10 03:40:00 +01:00
nativeBuildInputs = [ cmake pkg-config ];
2021-05-15 20:42:38 +01:00
buildInputs = if stdenv.isDarwin
2021-10-22 15:51:22 +01:00
then [ libiconv Security SystemConfiguration ]
2021-05-15 20:42:38 +01: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";
2021-10-22 15:51:22 +01:00
changelog = "https://github.com/Byron/gitoxide/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit /* or */ asl20 ];
2021-10-22 15:51:22 +01:00
maintainers = with maintainers; [ syberant ];
};
}