git-chain: init at 0-unstable-2024-08-09 (#342850)

This commit is contained in:
Masum Reza 2024-10-28 23:24:54 +05:30 committed by GitHub
commit 405c272fa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 0 deletions

View File

@ -2545,6 +2545,12 @@
githubId = 34620799;
name = "Jacob Bachmann";
};
bcyran = {
email = "bazyli@cyran.dev";
github = "bcyran";
githubId = 8322846;
name = "Bazyli Cyran";
};
bdd = {
email = "bdd@mindcast.org";
github = "bdd";

View File

@ -0,0 +1,48 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
git,
nix-update-script,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage {
pname = "git-chain";
version = "0-unstable-2024-08-09";
src = fetchFromGitHub {
owner = "dashed";
repo = "git-chain";
rev = "4fee033ea1ee51bbb6b7f75411f0f4f799aea1e2";
hash = "sha256-wQZXixg7mCBUo18z/WCkTWW3R0j2jxs8t1yaQzY3Eu4=";
};
cargoHash = "sha256-pRxOrlDgfSpUBY2WKfoIH9ngLzb2noiLqxA3/6s+mRw=";
nativeBuildInputs = [ pkg-config ];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
]
);
nativeCheckInputs = [ git ];
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = with lib; {
description = "Tool for rebasing a chain of local git branches";
homepage = "https://github.com/dashed/git-chain";
license = licenses.mit;
mainProgram = "git-chain";
maintainers = with maintainers; [ bcyran ];
};
}