30 lines
566 B
Nix
30 lines
566 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
outputs = {
|
|
systems,
|
|
nixpkgs,
|
|
...
|
|
} @ inputs: let
|
|
eachSystem = f:
|
|
nixpkgs.lib.genAttrs (import systems) (
|
|
system:
|
|
f nixpkgs.legacyPackages.${system}
|
|
);
|
|
in {
|
|
devShells = eachSystem (pkgs: {
|
|
default = pkgs.mkShell {
|
|
buildInputs = [
|
|
pkgs.nodejs
|
|
|
|
pkgs.nodePackages.pnpm
|
|
|
|
pkgs.nodePackages.typescript
|
|
pkgs.nodePackages.typescript-language-server
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|