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