37 lines
788 B
Nix
37 lines
788 B
Nix
|
|
# SPDX-License-Identifier: Unlicense
|
||
|
|
{
|
||
|
|
inputs = {
|
||
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||
|
|
devshell.url = "github:numtide/devshell";
|
||
|
|
systems.url = "github:nix-systems/default";
|
||
|
|
};
|
||
|
|
|
||
|
|
outputs =
|
||
|
|
inputs@{ flake-parts, ... }:
|
||
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||
|
|
systems = import inputs.systems;
|
||
|
|
|
||
|
|
imports = [
|
||
|
|
inputs.devshell.flakeModule
|
||
|
|
];
|
||
|
|
|
||
|
|
perSystem =
|
||
|
|
{
|
||
|
|
system,
|
||
|
|
pkgs,
|
||
|
|
inputs',
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
{
|
||
|
|
devshells.default = {
|
||
|
|
packages = with pkgs; [
|
||
|
|
nodejs_24
|
||
|
|
typescript
|
||
|
|
typescript-language-server
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|