Created
July 19, 2022 02:12
-
-
Save 0xrohan10/101c29c7f5041d0aef956eb98466ba68 to your computer and use it in GitHub Desktop.
NodeJS + Nix shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let pkgs = import <nixpkgs> {}; | |
| in pkgs.mkShell rec { | |
| name = "nodejs"; | |
| buildInputs = with pkgs; [ | |
| gnumake | |
| gcc | |
| readline | |
| openssl | |
| libxml2 | |
| curl | |
| libiconv | |
| glibcLocales | |
| git | |
| nodejs-16_x | |
| yarn | |
| ]; | |
| shellHook = '' | |
| export PATH="$PWD/node_modules/.bin/:$PATH" | |
| alias scripts='jq ".scripts" package.json' | |
| ''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment