eikaiwa-packages.nix 532 B

12345678910111213141516171819202122232425
  1. { lib, buildEnv, yarn, overmind, ruby_2_5, nodejs-10_x ? null }:
  2. let
  3. pkgsNewEnough = (lib.versionAtLeast yarn.version "1.10.0") && (nodejs-10_x != null);
  4. webpkgs = if pkgsNewEnough
  5. then { inherit yarn nodejs-10_x; }
  6. else builtins.trace "Using <nixpkgs-unstable> channel for web packages"
  7. (import <nixpkgs-unstable> {});
  8. in
  9. let
  10. nodejs = webpkgs.nodejs-10_x;
  11. yarn = webpkgs.yarn.override { inherit nodejs; };
  12. in
  13. buildEnv {
  14. name = "eikaiwa-packages";
  15. paths = [
  16. nodejs
  17. yarn
  18. overmind
  19. ruby_2_5
  20. ];
  21. }