Unverified Commit bd484e8f authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

stax: init at v0.25.1 (#496630)

parents fc1f279c 3c89e4ef
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -10579,6 +10579,11 @@
    githubId = 982322;
    name = "Henrik Olsson";
  };
  henrikvtcodes = {
    github = "henrikvtcodes";
    githubId = 22358337;
    name = "Henrik VT";
  };
  henrirosten = {
    email = "henri.rosten@unikie.com";
    github = "henrirosten";
+38 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  versionCheckHook,
  perl,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "stax";
  version = "0.25.1";

  src = fetchFromGitHub {
    owner = "cesarferreira";
    repo = "stax";
    tag = "v${finalAttrs.version}";
    hash = "sha256-HHunRVDoijBOcIzj0xknj2O+m+A1nmkkxu97XZcvmJw=";
  };

  nativeBuildInputs = [ perl ];

  cargoHash = "sha256-cJmK5uX3HCz4own2UtXFkHdGFETjina2/UW18f/g/bA=";

  doInstallCheck = true;
  doCheck = false;
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";

  meta = {
    description = "Stacked-branch workflow for Git with an interactive TUI, smart PRs, and safe undo";
    homepage = "https://github.com/cesarferreira/stax";
    license = lib.licenses.mit;
    mainProgram = "stax";
    maintainers = with lib.maintainers; [
      henrikvtcodes
    ];
  };
})