CyrilleBonamy / nur-packages

GRICAD NUR repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GRICAD NUR repository

Basic usage

  • To make NUR accessible for your login user, add the following to ~/.config/nixpkgs/config.nix:
{
  packageOverrides = pkgs: {
    nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
      inherit pkgs;
    };
  };
}
  • List the packages
$ nix-env -f "<nixpkgs>" -qaP -A nur.repos.gricad
  • Install a package
$ nix-env -iA -f "<nixpkgs>" nur.repos.gricad.openmpi2-opa

Advanced usage (mostly for admins)

  • Local build of a package:
nix-build --arg pkgs 'import <nixpkgs> {}' -A hello
  • Optional pushing into the cache (need gricad cachix key)
nix-build --arg pkgs 'import <nixpkgs> {}' -A hello | cachix push gricad
  • Force an update of the repository
curl -XPOST https://nur-update.herokuapp.com/update?repo=gricad
  • Configure cachix on a cluster

    • Login as root and load nix environment
    • Install cachix: nix-env -iA cachix -f https://cachix.org/api/v1/install
    • Activate cachix: cachix use gricad
  • Cachix configuration for Travis

Frst, get the secretkey (from ~/.config/cachix/cachix.dhall)

travis encrypt --pro CACHIX_SIGNING_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=="

Build Status Cachix Cache

About

GRICAD NUR repository

License:MIT License


Languages

Language:Nix 97.0%Language:Shell 3.0%