Skip to content

Commit

Permalink
hyperspace: add meta and change package name
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Sanchez Medina <[email protected]>
  • Loading branch information
augustebaum and alejandrosame committed Oct 24, 2023
1 parent cb104c5 commit 453a3d5
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 24 deletions.
14 changes: 10 additions & 4 deletions pkgs/by-name/autobase/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config,
dream2nix,
...
}: {
}: rec {
imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
Expand All @@ -13,14 +13,20 @@
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "autobase";
rev = "v1.0.0-alpha.9";
rev = "v${version}";
sha256 = "sha256-aKs39/9GG3tRq5UBBDWcz1h64kaCt+1Cru3C4fKv5RU=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

meta = with lib; {
description = "Autobase lets you write concise multiwriter data structures with Hypercore";
homepage = "https://github.com/holepunchto/autobase";
license = licenses.mit;
};
};

deps = {nixpkgs, ...}: {
Expand All @@ -37,6 +43,6 @@
packageLockFile = ./package-lock.json;
};

name = "autobase";
version = "v1.0.0-alpha.9";
name = "autobase-${version}";
version = "1.0.0-alpha.9";
}
14 changes: 10 additions & 4 deletions pkgs/by-name/corestore/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config,
dream2nix,
...
}: {
}: rec {
imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
Expand All @@ -13,14 +13,20 @@
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "corestore";
rev = "v6.15.9";
rev = "v${version}";
sha256 = "sha256-18FKwP0XHoq/F8oF8BCLlul/Xb30sd0iOWuiKkzpPLI=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

meta = with lib; {
description = "A simple corestore that wraps a random-access-storage module";
homepage = "https://github.com/holepunchto/corestore";
license = licenses.mit;
};
};

deps = {nixpkgs, ...}: {
Expand All @@ -37,6 +43,6 @@
packageLockFile = ./package-lock.json;
};

name = "corestore";
version = "v6.15.9";
name = "corestore-${version}";
version = "6.15.9";
}
14 changes: 10 additions & 4 deletions pkgs/by-name/hyperbeam/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config,
dream2nix,
...
}: {
}: rec {
imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
Expand All @@ -13,14 +13,20 @@
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "hyperbeam";
rev = "v3.0.1";
rev = "v${version}";
sha256 = "sha256-2JiVJmfhhE4ntb1lTtqqi5RD44hhGGAwnc5Nw0HLBcw=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

meta = with lib; {
description = "A 1-1 end-to-end encrypted internet pipe powered by Hyperswarm";
homepage = "https://github.com/holepunchto/hyperbeam";
license = licenses.mit;
};
};

deps = {nixpkgs, ...}: {
Expand All @@ -37,6 +43,6 @@
packageLockFile = ./package-lock.json;
};

name = "hyperbeam";
version = "v3.0.1";
name = "hyperbeam-${version}";
version = "3.0.1";
}
14 changes: 10 additions & 4 deletions pkgs/by-name/hyperblobs/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config,
dream2nix,
...
}: {
}: rec {
imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
Expand All @@ -13,14 +13,20 @@
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "hyperblobs";
rev = "v2.3.3";
rev = "v${version}";
sha256 = "sha256-ybC6X/3zluoIRcoEtUD+zi6u5OWHaRCMPimK1kznIGk=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

meta = with lib; {
description = "A blob store for Hypercore";
homepage = "https://github.com/holepunchto/hyperblobs";
license = licenses.asl20;
};
};

deps = {nixpkgs, ...}: {
Expand All @@ -37,6 +43,6 @@
packageLockFile = ./package-lock.json;
};

name = "hyperblobs";
version = "v2.3.3";
name = "hyperblobs-${version}";
version = "2.3.3";
}
14 changes: 10 additions & 4 deletions pkgs/by-name/hypercore/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config,
dream2nix,
...
}: {
}: rec {
imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
Expand All @@ -13,14 +13,20 @@
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "hypercore";
rev = "v10.28.11";
rev = "v${version}";
sha256 = "sha256-u8gpe0t/ljkYQYvC6H1G1IXQgr4pVdonyiYuMJ5P4lo=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

meta = with lib; {
description = "Hypercore is a secure, distributed append-only log.";
homepage = "https://github.com/holepunchto/autobase";
license = licenses.mit;
};
};

deps = {nixpkgs, ...}: {
Expand All @@ -37,6 +43,6 @@
packageLockFile = ./package-lock.json;
};

name = "hypercore";
version = "v10.28.11";
name = "hypercore-${version}";
version = "10.28.11";
}
14 changes: 10 additions & 4 deletions pkgs/by-name/hyperswarm/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config,
dream2nix,
...
}: {
}: rec {
imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
Expand All @@ -13,14 +13,20 @@
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "hyperswarm";
rev = "v4.7.3";
rev = "v${version}";
sha256 = "sha256-VjRPTsgkc2179ZRS2wAtXlf20jmaPbtyrwcFgG7+N5A=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

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

deps = {nixpkgs, ...}: {
Expand All @@ -37,6 +43,6 @@
packageLockFile = ./package-lock.json;
};

name = "hyperswarm";
version = "v4.7.3";
name = "hyperswarm-${version}";
version = "4.7.3";
}

0 comments on commit 453a3d5

Please sign in to comment.