Skip to content

Commit bd484e8

Browse files
stax: init at v0.25.1 (#496630)
2 parents fc1f279 + 3c89e4e commit bd484e8

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

maintainers/maintainer-list.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10579,6 +10579,11 @@
1057910579
githubId = 982322;
1058010580
name = "Henrik Olsson";
1058110581
};
10582+
henrikvtcodes = {
10583+
github = "henrikvtcodes";
10584+
githubId = 22358337;
10585+
name = "Henrik VT";
10586+
};
1058210587
henrirosten = {
1058310588
email = "henri.rosten@unikie.com";
1058410589
github = "henrirosten";

pkgs/by-name/st/stax/package.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
versionCheckHook,
6+
perl,
7+
}:
8+
9+
rustPlatform.buildRustPackage (finalAttrs: {
10+
pname = "stax";
11+
version = "0.25.1";
12+
13+
src = fetchFromGitHub {
14+
owner = "cesarferreira";
15+
repo = "stax";
16+
tag = "v${finalAttrs.version}";
17+
hash = "sha256-HHunRVDoijBOcIzj0xknj2O+m+A1nmkkxu97XZcvmJw=";
18+
};
19+
20+
nativeBuildInputs = [ perl ];
21+
22+
cargoHash = "sha256-cJmK5uX3HCz4own2UtXFkHdGFETjina2/UW18f/g/bA=";
23+
24+
doInstallCheck = true;
25+
doCheck = false;
26+
nativeInstallCheckInputs = [ versionCheckHook ];
27+
versionCheckProgramArg = "--version";
28+
29+
meta = {
30+
description = "Stacked-branch workflow for Git with an interactive TUI, smart PRs, and safe undo";
31+
homepage = "https://github.com/cesarferreira/stax";
32+
license = lib.licenses.mit;
33+
mainProgram = "stax";
34+
maintainers = with lib.maintainers; [
35+
henrikvtcodes
36+
];
37+
};
38+
})

0 commit comments

Comments
 (0)