tree-sitter-d2/flake.nix

28 lines
788 B
Nix
Raw Normal View History

2022-12-04 00:07:26 +03:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
2022-12-04 00:07:26 +03:00
flake-utils.url = "github:numtide/flake-utils";
2023-06-16 00:43:30 +03:00
tools.url = "git+https://git.pleshevski.ru/mynix/tools";
2022-12-04 00:07:26 +03:00
};
2023-06-16 00:43:30 +03:00
outputs = { self, nixpkgs, flake-utils, tools, ... }:
2022-12-04 00:07:26 +03:00
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
2022-12-07 12:59:06 +03:00
jq
2023-06-16 00:43:30 +03:00
tools.packages.${system}.d2
2022-12-04 00:07:26 +03:00
nodejs-18_x
tree-sitter
nodePackages.eslint
nodePackages.prettier
nodePackages.vscode-langservers-extracted # html, css, json, eslint
2022-12-07 13:57:13 +03:00
(import ./dev/nvim-ts.nix { inherit pkgs; })
2022-12-04 00:07:26 +03:00
];
};
});
}