2025-12-14 19:19:09 +01:00
|
|
|
# SPDX-License-Identifier: Unlicense
|
|
|
|
|
{
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
|
devshell.url = "github:numtide/devshell";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
|
inputs@{
|
|
|
|
|
flake-parts,
|
|
|
|
|
devshell,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
|
systems = import inputs.systems;
|
|
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
|
devshell.flakeModule
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
perSystem =
|
|
|
|
|
{
|
|
|
|
|
system,
|
|
|
|
|
pkgs,
|
|
|
|
|
inputs',
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
{
|
|
|
|
|
_module.args.pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
|
|
|
|
|
|
|
|
devshells.default = {
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
http-server
|
|
|
|
|
prettier
|
|
|
|
|
vscode-langservers-extracted
|
2025-12-15 18:27:19 +01:00
|
|
|
typescript-language-server
|
|
|
|
|
typescript
|
2025-12-14 19:19:09 +01:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|