Skip to content

Commit 2ac00cf

Browse files
committed
Add nix shell
1 parent 50d9577 commit 2ac00cf

File tree

5 files changed

+88
-0
lines changed

5 files changed

+88
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ tmp
44
npm-debug.log
55
*.tgz
66
junit.xml
7+
.direnv

flake.lock

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
description = "node-chromedriver";
3+
4+
inputs = {
5+
flake-utils.url = "github:numtide/flake-utils";
6+
};
7+
8+
outputs = { self, nixpkgs, flake-utils }:
9+
flake-utils.lib.eachDefaultSystem (system:
10+
let
11+
pkgs = import nixpkgs {
12+
inherit system;
13+
overlays = [ ];
14+
};
15+
in
16+
{
17+
devShells.default = import ./shell.nix { inherit pkgs; };
18+
}
19+
);
20+
}

shell.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
pkgs.mkShell {
3+
nativeBuildInputs = with pkgs.buildPackages; [
4+
nodePackages_latest.nodejs
5+
nodePackages_latest.npm
6+
];
7+
}

0 commit comments

Comments
 (0)