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.

44 lines
1.0 KiB
Nix
Raw Normal View History

2021-10-22 14:51:22 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, cmake
, pkg-config
, stdenv
, libiconv
, Security
, SystemConfiguration
2023-01-13 08:27:18 +00:00
, curl
2021-10-22 14:51:22 +00:00
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "gitoxide";
2023-11-05 07:02:36 +00:00
version = "0.31.1";
src = fetchFromGitHub {
owner = "Byron";
repo = "gitoxide";
rev = "v${version}";
2023-11-05 07:02:36 +00:00
hash = "sha256-ML0sVsegrG96rBfpnD7GgOf9TWe/ojRo9UJwMFpDsKs=";
};
2023-11-05 07:02:36 +00:00
cargoHash = "sha256-gz4VY4a4AK9laIQo2MVTabyKzMyc7jRHrYsrfOLx+Ao=";
2021-05-10 02:40:00 +00:00
nativeBuildInputs = [ cmake pkg-config ];
2023-08-03 15:09:25 +00:00
2023-01-13 08:27:18 +00:00
buildInputs = [ curl ] ++ (if stdenv.isDarwin
2021-10-22 14:51:22 +00:00
then [ libiconv Security SystemConfiguration ]
2023-01-13 08:27:18 +00:00
else [ openssl ]);
# Needed to get openssl-sys to use pkg-config.
2023-08-03 15:09:25 +00:00
env.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 14:51:22 +00:00
changelog = "https://github.com/Byron/gitoxide/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit /* or */ asl20 ];
2021-10-22 14:51:22 +00:00
maintainers = with maintainers; [ syberant ];
};
}