Giter Club home page Giter Club logo

nixjs's Introduction

nixjs

This repository contains nix packages for various versions of javascript tools and associated libraries. It is indended for development on javascript projects where being precise about your tooling versioning is important. To see a complete list of available packages, take a look in pkgs/default.nix.

Usage

It is recommended to consume this package set as an overlay. To create the overlay, simply import the default module and pass it a set containing keys for the package names you want, and values which are the versions you want. For instance, to pull in purescript and a specific node and yarn version, you could use the following shell.nix:

{
  nodejsVersion ? "10.14.1",
  yarnVersion ? "1.12.3",
  purescriptVersion ? "0.12.1",
  nixjs ? fetchTarball "https://github.com/cprussin/nixjs/archive/0.0.2.tar.gz",
  nixpkgs ? <nixpkgs>
}:

with import nixpkgs {
  overlays = [
    (import nixjs {
      nodejs = nodejsVersion;
      yarn = yarnVersion;
      purescript = purescriptVersion;
    })
  ];
};

mkShell {
  buildInputs = [ nodejs yarn purescript ];
}

Contributing

This repository is open to contributions! We welcome the following packages in this repository:

  • All versions of nodejs
  • Javascript ecosystem tools that are generally not installed via node package managers, such as the package managers themselves (yarn, pnpm, etc.)
  • Portions of tooling for languages that compile to javascript that aren't generally installed through node package managers (for instance, the purescript compiler)
  • Versions of system libraries necessary to support any of the above that aren't in nixpkgs or aren't reliable in nixpkgs

Things we would prefer not to have in this package set:

  • Node modules / bower components. There are better tools out there that do a more holistic job at solving nix packaging for these portions of the ecosystem, such as node2nix and bower2nix. This includes things like psc for purescript or bower itself, which are best installed through a node package manager.
  • Versions of system libraries that are available and supported in nixpkgs.

nixjs's People

Contributors

cprussin avatar

Watchers

James Cloos avatar Brandon Elam Barker avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.