depot/third_party/nixpkgs/pkgs/applications/version-management/git-series/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

65 lines
1.4 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
stdenv,
curl,
installShellFiles,
libgit2,
libssh2,
openssl,
zlib,
}:
rustPlatform.buildRustPackage {
pname = "git-series";
version = "0.9.1-unstable-2024-02-02";
src = fetchFromGitHub {
owner = "git-series";
repo = "git-series";
rev = "9c5d40edec87b79db0c5bac1458aa0e2c8fdeb8e";
hash = "sha256-DtOR7+vX7efNzYMRJwJTj5cXlFHQwzcS0Gp2feVdea4=";
};
cargoHash = "sha256-D83mfaH4iKagGjdX+YhCzva99+dCneHeWPNnkzZB/k0=";
nativeBuildInputs = [
pkg-config
installShellFiles
] ++ lib.optionals stdenv.isDarwin [ curl ];
buildInputs = [
libgit2
libssh2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [ curl ];
env = {
LIBGIT2_SYS_USE_PKG_CONFIG = true;
LIBSSH2_SYS_USE_PKG_CONFIG = true;
};
postInstall = ''
installManPage ./git-series.1
'';
meta = with lib; {
description = "Tool to help with formatting git patches for review on mailing lists";
longDescription = ''
git series tracks changes to a patch series over time. git
series also tracks a cover letter for the patch series,
formats the series for email, and prepares pull requests.
'';
homepage = "https://github.com/git-series/git-series";
license = licenses.mit;
maintainers = with maintainers; [
edef
vmandela
aleksana
];
mainProgram = "git-series";
};
}