Skip to content

feat: Lavamoat in the hathor-wallet-headless #530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if [[ $(type -t use_flake) != function ]]; then
echo "ERROR: use_flake function missing."
echo "Please update direnv to v2.30.0 or later."
exit 1
fi

use flake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ coverage-integration
tmp/

dist/
.direnv/
108 changes: 108 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
description = "virtual environments";

inputs = {
devshell.url = "github:numtide/devshell";
flake-utils.url = "github:numtide/flake-utils";
unstableNixPkgs.url = "nixpkgs/nixos-unstable";
};

outputs = { self, flake-utils, devshell, nixpkgs, unstableNixPkgs, ... }@inputs:
let
overlays.default = final: prev:
let
packages = self.packages.${final.system};
inherit (packages) node-packages;
in
{
nodejs = final.nodejs-18_x;
nodePackages = prev.nodePackages;
yarn = (import unstableNixPkgs { system = final.system; }).yarn-berry;
};
in
flake-utils.lib.eachDefaultSystem (system: {
devShell =
let pkgs = import nixpkgs {
inherit system;

overlays = [
devshell.overlays.default
overlays.default
];
};
in
pkgs.devshell.mkShell {
packages = with pkgs; [
nixpkgs-fmt
nodejs_22
yarn
];
};
});
}
Loading
Loading