cloudflare-workers/flake.nix

43 lines
1 KiB
Nix
Raw Normal View History

2026-02-26 09:22:48 +01:00
{
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # tracks nixpkgs unstable branch
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
2026-02-26 10:16:34 +01:00
inputs@{ flake-parts, ... }:
# https://flake.parts/module-arguments.html
flake-parts.lib.mkFlake { inherit inputs; } {
2026-02-26 09:22:48 +01:00
flake = {
# Put your original flake attributes here.
};
systems = [
# systems for which you want to build the `perSystem` attributes
"x86_64-linux"
"aarch64-darwin"
];
perSystem =
{
config,
self',
inputs',
pkgs,
system,
...
}:
{
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
2026-02-26 09:40:54 +01:00
wrangler
nodejs_22
2026-02-26 09:22:48 +01:00
];
2026-02-26 09:40:54 +01:00
shellHook = ''
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
'';
2026-02-26 09:22:48 +01:00
};
};
};
};
}