Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildNpmPackage (finalAttrs: { 9 pname = "hypercore"; 10 version = "11.11.2"; 11 12 src = fetchFromGitHub { 13 owner = "holepunchto"; 14 repo = "hypercore"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-vDI1j5seR6OBp64wq9oy4eVrtlJF7OCiQb+2EEdOGXw="; 17 }; 18 19 npmDepsHash = "sha256-ZJxVmQWKgHyKkuYfGIlANXFcROjI7fibg6mxIhDZowM="; 20 21 dontNpmBuild = true; 22 23 postPatch = '' 24 cp ${./package-lock.json} ./package-lock.json 25 ''; 26 27 passthru.updateScript = nix-update-script { }; 28 29 meta = { 30 description = "Secure, distributed append-only log"; 31 homepage = "https://github.com/holepunchto/hypercore"; 32 license = lib.licenses.mit; 33 teams = with lib.teams; [ ngi ]; 34 maintainers = [ lib.maintainers.goodylove ]; 35 platforms = lib.platforms.all; 36 }; 37 38})