Skip to content

Commit 052a952

Browse files
add nix dev shell
1 parent 65ae5d4 commit 052a952

4 files changed

Lines changed: 100 additions & 1 deletion

File tree

.envrc

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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
npm/
2-
.cov/
2+
.cov/
3+
.direnv/

flake.lock

Lines changed: 61 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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
description = "Description for the project";
3+
4+
inputs = {
5+
flake-parts.url = "github:hercules-ci/flake-parts";
6+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
7+
};
8+
9+
outputs = inputs@{ flake-parts, ... }:
10+
flake-parts.lib.mkFlake { inherit inputs; } {
11+
imports = [
12+
# To import an internal flake module: ./other.nix
13+
# To import an external flake module:
14+
# 1. Add foo to inputs
15+
# 2. Add foo as a parameter to the outputs function
16+
# 3. Add here: foo.flakeModule
17+
18+
];
19+
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
20+
perSystem = { config, self', inputs', pkgs, system, ... }: {
21+
devShells.default = pkgs.mkShellNoCC {
22+
packages = with pkgs; [
23+
biome
24+
deno
25+
nodejs_24
26+
];
27+
};
28+
};
29+
flake = {
30+
# The usual flake attributes can be defined here, including system-
31+
# agnostic ones like nixosModule and system-enumerating ones, although
32+
# those are more easily expressed in perSystem.
33+
34+
};
35+
};
36+
}

0 commit comments

Comments
 (0)