Skip to content

Instantly share code, notes, and snippets.

@0xrohan10
Created July 19, 2022 02:12
Show Gist options
  • Select an option

  • Save 0xrohan10/101c29c7f5041d0aef956eb98466ba68 to your computer and use it in GitHub Desktop.

Select an option

Save 0xrohan10/101c29c7f5041d0aef956eb98466ba68 to your computer and use it in GitHub Desktop.
NodeJS + Nix shell
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