mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
feat(nix): add dev environment
This commit is contained in:
parent
512d4b01d5
commit
114776d5af
4 changed files with 96 additions and 0 deletions
28
flake.nix
Normal file
28
flake.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
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;
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue