For Nix we require some extra packages. Use this shell.nix
, it gets you everything in one shot:
with import <nixpkgs> {};
pkgs.stdenv.mkDerivation rec {
name = "yarn";
buildInputs = with pkgs; [
xorg.libX11
xorg.libX11.dev
xorg.libXext
yarn
nodejs
llvm
cmake
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
}
The extra packages are required due to js-slang
needing some package that needs to access the GPU.
After running nix-shell
you will want to resume installation from yarn install
onwards.