32 lines
658 B
Nix
32 lines
658 B
Nix
{
|
|
inputs = {
|
|
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
systems.url = "github:nix-systems/default";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|