-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from ngi-nix/hyperspace-autobase
hyperspace-autobase: init at 1.0.0-alpha.9
- Loading branch information
Showing
5 changed files
with
4,183 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
lib, | ||
config, | ||
dream2nix, | ||
... | ||
}: rec { | ||
name = "autobase"; | ||
version = "1.0.0-alpha.9"; | ||
|
||
imports = [ | ||
dream2nix.modules.dream2nix.nodejs-package-lock-v3 | ||
dream2nix.modules.dream2nix.nodejs-granular-v3 | ||
]; | ||
|
||
mkDerivation = { | ||
src = config.deps.fetchFromGitHub { | ||
owner = "holepunchto"; | ||
repo = "autobase"; | ||
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, ...}: { | ||
inherit | ||
(nixpkgs) | ||
fetchFromGitHub | ||
stdenv | ||
; | ||
|
||
npm = nixpkgs.nodejs_16.pkgs.npm; | ||
}; | ||
|
||
nodejs-package-lock-v3 = { | ||
packageLockFile = ./package-lock.json; | ||
}; | ||
} |
Oops, something went wrong.