Files
nixpkgs/pkgs/by-name/gi/git-series/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

68 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-hFiNK0MQmCPciflMwwR4gzU0Z+Q1WkPJrd4Hs33W8kw=";
nativeBuildInputs = [
pkg-config
installShellFiles
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ curl ];
buildInputs = [
libgit2
libssh2
openssl
zlib
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ curl ];
env = {
LIBGIT2_SYS_USE_PKG_CONFIG = true;
LIBSSH2_SYS_USE_PKG_CONFIG = true;
};
postInstall = ''
installManPage ./git-series.1
'';
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [
edef
vmandela
aleksana
];
mainProgram = "git-series";
};
}