2024-05-22 08:47:18 +08:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
outputs =
|
|
|
|
{ nixpkgs, flake-utils, ... }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
# generic
|
|
|
|
git
|
|
|
|
git-lfs
|
|
|
|
gnumake
|
|
|
|
gnused
|
|
|
|
gnutar
|
|
|
|
gzip
|
|
|
|
|
|
|
|
# frontend
|
2024-11-14 05:39:55 +08:00
|
|
|
nodejs_22
|
2024-05-22 08:47:18 +08:00
|
|
|
|
|
|
|
# linting
|
|
|
|
python312
|
|
|
|
poetry
|
|
|
|
|
|
|
|
# backend
|
2024-06-11 21:47:13 +08:00
|
|
|
gofumpt
|
2024-07-13 00:25:54 +08:00
|
|
|
sqlite
|
2024-05-22 08:47:18 +08:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|