Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 34 lines 664 B view raw
1{ lib 2, buildNpmPackage 3, fetchFromGitHub 4}: 5 6buildNpmPackage rec { 7 pname = "hexo-cli"; 8 version = "4.3.1"; 9 10 src = fetchFromGitHub { 11 owner = "hexojs"; 12 repo = "hexo-cli"; 13 rev = "v${version}"; 14 hash = "sha256-mtbg9Fa9LBqG/aNfm4yEo4ymuaxuqhymkO1q6mYA2Fs="; 15 }; 16 17 npmDepsHash = "sha256-VCHG1YMPRwEBbwgscSv6V+fTNVRpsCxWeyO8co4Zy6k="; 18 19 installPhase = '' 20 runHook preInstall 21 22 mkdir -p $out 23 cp -r bin/ dist/ node_modules/ package.json $out/ 24 25 runHook postInstall 26 ''; 27 28 meta = { 29 description = "Command line interface for Hexo"; 30 mainProgram = "hexo"; 31 homepage = "https://hexo.io/"; 32 license = lib.licenses.mit; 33 }; 34}