Use nix flake to get dev shell

This commit is contained in:
Joeri Exelmans 2025-05-09 13:13:56 +02:00
parent e1a2139cb4
commit f8008aa25d
2 changed files with 82 additions and 0 deletions

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
rec {
devShells.default = pkgs.mkShellNoCC {
packages = with pkgs; [
nodejs_latest
pnpm
];
};
}
);
}