Unverified Commit 405c272f authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

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

parents ff469b5a d7bc62a1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+48 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}