Files
nixpkgs/pkgs/by-name/gi/git-chain/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

40 lines
905 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
git,
nix-update-script,
}:
rustPlatform.buildRustPackage {
pname = "git-chain";
version = "0-unstable-2025-03-25";
src = fetchFromGitHub {
owner = "dashed";
repo = "git-chain";
rev = "f6a6d365e6e3cce15e74649a421044a01fb4f68f";
hash = "sha256-lOAURUhR2Ts1DF8yW0WnovSWeZFC8UwR6j4cxoreonY=";
};
cargoHash = "sha256-0Ur80eIKQIsM5vyIt+9YpFufHTk97+T+KXoAkJE90Ag=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
nativeCheckInputs = [ git ];
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Tool for rebasing a chain of local git branches";
homepage = "https://github.com/dashed/git-chain";
license = lib.licenses.mit;
mainProgram = "git-chain";
maintainers = with lib.maintainers; [ bcyran ];
};
}