2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
stdenv,
|
|
|
|
curl,
|
|
|
|
installShellFiles,
|
|
|
|
libgit2,
|
|
|
|
libssh2,
|
|
|
|
openssl,
|
|
|
|
zlib,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "git-series";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.9.1-unstable-2024-02-02";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "git-series";
|
|
|
|
repo = "git-series";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "9c5d40edec87b79db0c5bac1458aa0e2c8fdeb8e";
|
|
|
|
hash = "sha256-DtOR7+vX7efNzYMRJwJTj5cXlFHQwzcS0Gp2feVdea4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-D83mfaH4iKagGjdX+YhCzva99+dCneHeWPNnkzZB/k0=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2024-07-27 06:49:29 +00:00
|
|
|
installShellFiles
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ curl ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
libgit2
|
|
|
|
libssh2
|
|
|
|
openssl
|
|
|
|
zlib
|
2024-07-27 06:49:29 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ curl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
env = {
|
|
|
|
LIBGIT2_SYS_USE_PKG_CONFIG = true;
|
|
|
|
LIBSSH2_SYS_USE_PKG_CONFIG = true;
|
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postInstall = ''
|
2024-07-27 06:49:29 +00:00
|
|
|
installManPage ./git-series.1
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to help with formatting git patches for review on mailing lists";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2022-04-27 09:35:20 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/git-series/git-series";
|
|
|
|
license = licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
edef
|
|
|
|
vmandela
|
|
|
|
aleksana
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "git-series";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|