Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
feat: add a devShell flake output for nix develop
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrichardrinehart committed Nov 15, 2021
1 parent a4c9285 commit 7b6fbe6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@
};
};

devShell = pkgs.mkShell {
buildInputs = let
p = pkgs;
in
[
p.nodePackages.npm
];

shellHook = ''
export NODE_PATH="${nodeDependencies}/lib/node_modules";
export PATH="${nodeDependencies}/bin:$PATH";
'';
};

defaultPackage = packages.svelte-template;
});
}

0 comments on commit 7b6fbe6

Please sign in to comment.