mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 05:04:40 +00:00
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>
40 lines
905 B
Nix
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 ];
|
|
};
|
|
}
|