nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 36 lines 920 B view raw
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildNpmPackage (finalAttrs: { 9 pname = "mocha"; 10 version = "11.7.5"; 11 12 src = fetchFromGitHub { 13 owner = "mochajs"; 14 repo = "mocha"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-Bk/yF3z/DZ4h9mj1a/EG5ofC6/CIpLd81iQ1w7XkZ0A="; 17 }; 18 19 npmDepsHash = "sha256-dcq6P4BB6w7GGMzW2GfF8AzDnqPV/BS5nz+dxVjnc3o="; 20 21 postInstall = '' 22 # Installed only for backwards compat, but should just be removed. 23 rm $out/bin/_mocha 24 ''; 25 26 passthru.updateScript = nix-update-script { }; 27 28 meta = { 29 changelog = "https://github.com/mochajs/mocha/blob/v${finalAttrs.version}/CHANGELOG.md"; 30 description = "Simple, flexible, fun Javascript test framework for Node.js & the browser"; 31 homepage = "https://mochajs.org"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ pyrox0 ]; 34 mainProgram = "mocha"; 35 }; 36})