Giter Club home page Giter Club logo

nixml's Introduction

NIX-ML : Easy, reproducible, environments with Nix + YAML

Simple, perfectly reproducible, environments with nix specified using an YAML file.

Example, write to a file called env.nml:

nixml: v0.0
snapshot: stable-19.03
packages:
  - lang: python
    version: 2
    modules:
      - numpy
      - scipy
      - matplotlib
      - mahotas
      - jupyter
      - scikitlearn

Now, run

nixml shell

and you will be dropped into an environment containing the packages listed above, as was up to date in March 2019. Conceptually, the environment will always be generated from scratch, but caching means that the first time will take significantly longer (including, it will download all dependencies). Afterwards, it should take a few seconds at most.

This environment will be like a typical conda/pip/virtualenv/... environment: if will place the corresponding binaries at the front of the PATH so that they are picked with high priority, but, alternatively, you can generate a pure environment, which will contain only the packages that you specify. This avoids accidental use of packages that are not part of the environment:

nixml shell --pure

Finally, you can run

nixml generate

to just create the nixml.nix corresponding to the enviroment.

Dependencies

NIXML Format

It's a YaML file

nixml: version of nixml to use. Currently, only v0.0 is supported.

snapshot: This is the package version to use. Currently, only stable-19.03 is available, but general syntax is {stable,unstable}-{year}.{month}.

packages: A list of packages, which are grouped into language blocks. Currently supported:

  • python: Python language environment, specify the version (version) and modules.
  • texlive: Texlive packages
  • nix: Generic packages (i.e., vim or bash)

Author

nixml's People

Contributors

luispedro avatar

Watchers

 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.