Skip to content

Commit 6b7dd54

Browse files
chore: add a nix flake
1 parent a7e5b90 commit 6b7dd54

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

flake.lock

Lines changed: 27 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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
description = "A flake that installs Node.js";
3+
4+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
5+
6+
outputs = { self, nixpkgs }:
7+
let
8+
system = "aarch64-darwin"; # Change to your system if needed
9+
pkgs = import nixpkgs { inherit system; };
10+
in {
11+
packages.${system}.default = pkgs.nodejs;
12+
devShells.${system}.default = pkgs.mkShell {
13+
buildInputs = [ pkgs.nodejs ];
14+
};
15+
};
16+
}

0 commit comments

Comments
 (0)