25 lines
667 B
Nix
25 lines
667 B
Nix
{
|
|
description = "Good basic flake template";
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
systempkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
devShells.default = systempkgs.mkShell {
|
|
buildInputs = with systempkgs; [
|
|
# specific nodejs versions available, e.g. nodejs_18
|
|
# apparently "nodejs" no longer exists tho?
|
|
nodejs_22
|
|
nodePackages.aws-cdk
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|