feat: flake devshell

Signed-off-by: aprilthepink <aprl@acab.dev>
This commit is contained in:
aprilthepink 2024-05-12 23:58:58 +02:00
parent 6859ab5775
commit a17b9a739e
4 changed files with 75 additions and 1 deletions

29
flake.nix Normal file
View file

@ -0,0 +1,29 @@
{
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.bun
pkgs.nodePackages.typescript
pkgs.nodePackages.typescript-language-server
];
};
});
};
}