nix-flake-examples/wrangler/flake.nix

25 lines
651 B
Nix
Raw Permalink Normal View History

2024-11-01 21:21:02 +00:00
{
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
2024-11-02 20:53:29 +00:00
nodejs_22
2024-11-01 21:21:02 +00:00
nodePackages.typescript-language-server
wrangler
];
};
}
);
}