Skip to content

Commit

Permalink
git-chain: init at 0-unstable-2024-08-09 (#342850)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor authored Oct 28, 2024
2 parents ff469b5 + d7bc62a commit 405c272
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2545,6 +2545,12 @@
githubId = 34620799;
name = "Jacob Bachmann";
};
bcyran = {
email = "[email protected]";
github = "bcyran";
githubId = 8322846;
name = "Bazyli Cyran";
};
bdd = {
email = "[email protected]";
github = "bdd";
Expand Down
48 changes: 48 additions & 0 deletions pkgs/by-name/gi/git-chain/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit 405c272

Please sign in to comment.