Skip to content

Commit

Permalink
feat: adding a nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
louib-bitgo committed Jan 22, 2024
1 parent e1d5b3f commit ba5d41c
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
60 changes: 60 additions & 0 deletions flake.lock

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

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = {
self,
nixpkgs,
flake-utils,
}: (
flake-utils.lib.eachDefaultSystem (
system: (
let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
nodejs_20
];

shellHook = ''
export PATH="$(pwd)/node_modules/.bin:${pkgs.nodejs_20}/bin/:$PATH"
'';
};
}
)
)
);
}

0 comments on commit ba5d41c

Please sign in to comment.