You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
382B

  1. { pkgs ? import <nixpkgs> {} }:
  2. with pkgs;
  3. let
  4. nodePkg = pkgs.nodejs-12_x;
  5. yarnPkg = pkgs.yarn.override { nodejs = nodePkg; };
  6. tslPkg = pkgs.nodePackages.typescript-language-server.override { nodejs = nodePkg; };
  7. src = ./.;
  8. in mkShell {
  9. shellHook = ''
  10. export PATH=$PATH:${src}/node_modules/.bin
  11. '';
  12. buildInputs = [
  13. yarnPkg nodePkg tslPkg
  14. yarn2nix
  15. ];
  16. }