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