File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 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 = "taze" ;
16+ version = "18.6.0" ;
17+
18+ src = fetchFromGitHub {
19+ owner = "antfu-collective" ;
20+ repo = "taze" ;
21+ tag = "v${ finalAttrs . version } " ;
22+ hash = "sha256-IHWDBX2j+HQ77gGLcUBxywDbN6jHEVxT+x6ojWKPr3I=" ;
23+ } ;
24+
25+ pnpmDeps = pnpm . fetchDeps {
26+ inherit ( finalAttrs ) pname version src ;
27+ hash = "sha256-dlGW5WQMctVoVWLd+MnnNlmSh/MRxwcnlkCb5Dm7qsU=" ;
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 = "Modern cli tool that keeps your deps fresh" ;
57+ homepage = "https://github.com/antfu-collective/taze" ;
58+ changelog = "https://github.com/antfu-collective/taze/releases/tag/v${ finalAttrs . version } " ;
59+ license = lib . licenses . mit ;
60+ maintainers = with lib . maintainers ; [ xiaoxiangmoe ] ;
61+ mainProgram = "taze" ;
62+ } ;
63+ } )
You can’t perform that action at this time.
0 commit comments