mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
37 lines
756 B
Nix
37 lines
756 B
Nix
{
|
|
description = "Cloudflare Worker — GitHub webhook → Discord Gateway";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
bun
|
|
nodejs_22
|
|
biome
|
|
nixfmt
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "WebHooker devShell 已加载"
|
|
'';
|
|
};
|
|
|
|
formatter = nixpkgs.legacyPackages.${system}.nixfmt;
|
|
}
|
|
);
|
|
}
|