diff --git a/flake.nix b/flake.nix index c50a973..f8caa83 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,17 @@ outputs = { self, nixpkgs }: nixpkgs.lib.foldAttrs (item: acc: item // acc) { } (map (system: with nixpkgs.legacyPackages."${system}"; { + packages."${system}".default = buildNpmPackage { + pname = "todo-list"; + version = "1.0.0"; + src = ./.; + npmDepsHash = "sha256-CAV5SbdfW0+eOeCHPquAJioFRqaxMY7MMMkip+1y0Nc="; + installPhase = '' + mkdir -p $out + cp -r dist/. $out + ''; + }; + devShells."${system}".default = mkShell { nativeBuildInputs = [ nodejs_20