Giter VIP home page Giter VIP logo

nur-kapack's Introduction

CI build status Cachix Cache

NUR-Kapack repository

NUR-Kapack contains Nix package definitions of the software we work on in the DataMove team: OAR, the Batsim ecosystem, Melissa... This is part of Nix User Repository.

Packages of released versions defined in this repository are built regularly on CI and stored on a Cachix binary cache. You can use it to just fetch prebuilt binaries instead of rebuilding them with the following command.

# Install cachix
nix-env -iA cachix -f https://cachix.org/api/v1/install

# Enable our binary cache for your builds
cachix use capack

Interactive usage

You can enter shells that contain some of our packages with nix run.

# Essential Batsim tools in a single shell (latest release of each tool)
nix run -f https://github.com/oar-team/nur-kapack/archive/master.tar.gz batsim batsched pybatsim batexpe

# The same, but with latest commit on master branch of each tool
nix run -f https://github.com/oar-team/nur-kapack/archive/master.tar.gz batsim-master batsched-master pybatsim-master batexpe-master

You can also install packages in your Nix profile with nix-env.

# Install Batsim latest release in your profile
nix-env -f https://github.com/oar-team/nur-kapack/archive/master.tar.gz -iA batsim

Usage from Nix expressions

You can write Nix expression to define environments that use our packages. Assuming that you have a file named shell.nix that has the following content, you can enter the defined shell by calling nix-shell.

{ kapack ? import
    (fetchTarball "https://github.com/oar-team/nur-kapack/archive/master.tar.gz")
  {}
}:

kapack.pkgs.mkShell rec {
  name = "tuto-env";
  buildInputs = [
    kapack.batsim
    kapack.batsched
    kapack.pybatsim
    kapack.batexpe
  ];
}

If you want to pin the NUR-Kapack version you use, you can do one of the following.

  • Use a pinned tarball from GitHub such as https://github.com/oar-team/nur-kapack/archive/2518733fefc28290ecffe44c3234eb2a36b731cd.tar.gz
  • Use Nix Flakes

Usage à la NUR

As NUR-Kapack is a NUR, you can use our packages as it is done with other NURs. Please refer to the official NUR documentation for this usage.

nur-kapack's People

Contributors

adfaure avatar augu5te avatar bleuse avatar dependabot[bot] avatar guilloteauq avatar mommessc avatar mpoquet 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.