Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildNpmPackage, 4 fetchzip, 5}: 6 7buildNpmPackage rec { 8 pname = "codebuff"; 9 version = "1.0.451"; 10 11 src = fetchzip { 12 url = "https://registry.npmjs.org/codebuff/-/codebuff-${version}.tgz"; 13 hash = "sha256-98NiHDb0PrK71I28y7DwDJf2i+mKTQBp22PY4WJh5ig="; 14 }; 15 16 npmDepsHash = "sha256-qtBi5OT7UBsCIriO6Fk33gLOFNp5Ae0bT9qN+37b2sg="; 17 18 postPatch = '' 19 cp ${./package-lock.json} package-lock.json 20 ''; 21 22 dontNpmBuild = true; 23 24 passthru.updateScript = ./update.sh; 25 26 meta = { 27 description = "Use natural language to edit your codebase and run commands from your terminal faster"; 28 homepage = "https://www.codebuff.com/"; 29 downloadPage = "https://www.npmjs.com/package/codebuff"; 30 license = lib.licenses.mit; 31 maintainers = [ lib.maintainers.malo ]; 32 mainProgram = "codebuff"; 33 }; 34}