31 lines
660 B
Nix
31 lines
660 B
Nix
{
|
|
description = "TS environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
# Helper to provide system-specific attributes
|
|
forAllSupportedSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
});
|
|
|
|
supportedSystems = [
|
|
"x86_64-linux"
|
|
];
|
|
in
|
|
|
|
{
|
|
devShells = forAllSupportedSystems ({ pkgs }: {
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
typescript
|
|
nodejs_21
|
|
nodePackages_latest.pnpm
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|