Skip to content

Commit 576250f

Browse files
author
Steven Bazyl
committedJan 7, 2025·
Add nix devshell config
1 parent d633ca9 commit 576250f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

‎.envrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
# the shebang is ignored, but nice for editors
3+
4+
use flake .

‎flake.nix

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/698fd43e541a6b8685ed408aaf7a63561018f9f8";
4+
utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, utils }:
8+
utils.lib.eachDefaultSystem (system:
9+
let
10+
pkgs = import nixpkgs { inherit system; };
11+
in
12+
{
13+
devShell = with pkgs; mkShell {
14+
buildInputs = [
15+
nodejs_22
16+
nodePackages.prettier
17+
];
18+
};
19+
}
20+
);
21+
}

0 commit comments

Comments
 (0)