Skip to content

Commit d0cd839

Browse files
authored
bumpp: init at 10.0.3 (#385728)
2 parents fb2b0b6 + e6417c6 commit d0cd839

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

pkgs/by-name/bu/bumpp/package.nix

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
nodejs,
6+
pnpm_9,
7+
npmHooks,
8+
versionCheckHook,
9+
nix-update-script,
10+
}:
11+
let
12+
pnpm = pnpm_9;
13+
in
14+
stdenv.mkDerivation (finalAttrs: {
15+
pname = "bumpp";
16+
version = "10.0.3";
17+
18+
src = fetchFromGitHub {
19+
owner = "antfu-collective";
20+
repo = "bumpp";
21+
tag = "v${finalAttrs.version}";
22+
hash = "sha256-7e0p/mrGtyUO3za02d6fGS3ynF/txjieQ5w48UZooKQ=";
23+
};
24+
25+
pnpmDeps = pnpm.fetchDeps {
26+
inherit (finalAttrs) pname version src;
27+
hash = "sha256-NztqIE/0FSeFdteCPAPm/KgrD0Ax95HKe0FwWjj9unc=";
28+
};
29+
30+
nativeBuildInputs = [
31+
nodejs
32+
pnpm.configHook
33+
npmHooks.npmInstallHook
34+
];
35+
36+
buildPhase = ''
37+
runHook preBuild
38+
39+
pnpm run build
40+
find dist -type f \( -name '*.cjs' -or -name '*.cts' -or -name '*.ts' \) -delete
41+
42+
runHook postBuild
43+
'';
44+
45+
dontNpmPrune = true;
46+
47+
nativeInstallCheckInputs = [
48+
versionCheckHook
49+
];
50+
versionCheckProgramArg = [ "--version" ];
51+
doInstallCheck = true;
52+
53+
passthru.updateScript = nix-update-script { };
54+
55+
meta = {
56+
description = "Interactive CLI that bumps your version numbers and more";
57+
homepage = "https://github.com/antfu-collective/bumpp";
58+
changelog = "https://github.com/antfu-collective/bumpp/releases/tag/v${finalAttrs.version}";
59+
license = lib.licenses.mit;
60+
maintainers = with lib.maintainers; [ xiaoxiangmoe ];
61+
mainProgram = "bumpp";
62+
};
63+
})

0 commit comments

Comments
 (0)