Skip to content

Commit

Permalink
hyperspace-hyperswarm: init at 4.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrosame committed Dec 30, 2023
1 parent 8d5507c commit 005e481
Show file tree
Hide file tree
Showing 2 changed files with 4,381 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkgs/by-name/hyperswarm/dream2.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
config,
dream2nix,
...
}: rec {
name = "hyperswarm-${version}";
version = "4.7.3";

imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
];

mkDerivation = {
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "hyperswarm";
rev = "v${version}";
sha256 = "sha256-VjRPTsgkc2179ZRS2wAtXlf20jmaPbtyrwcFgG7+N5A=";
};

# We don't know why tests only fail on CI
doCheck = false;

meta = with lib; {
description = "A distributed networking stack for connecting peers.";
homepage = "https://github.com/holepunchto/hyperswarm";
license = licenses.mit;
};
};

deps = {nixpkgs, ...}: {
inherit
(nixpkgs)
fetchFromGitHub
stdenv
;

npm = nixpkgs.nodejs.pkgs.npm;
};

nodejs-package-lock-v3 = {
packageLockFile = ./package-lock.json;
};
}
Loading

0 comments on commit 005e481

Please sign in to comment.