22 lines
505 B
Nix
22 lines
505 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils }:
|
|
utils.lib.eachDefaultSystem (system:
|
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
nodejs-18_x
|
|
deno
|
|
];
|
|
shellHook = ''
|
|
export PATH="$PATH":$(pwd)/node_modules/.bin
|
|
'';
|
|
};
|
|
});
|
|
}
|