Skip to content

Gricad/nur-packages

 
 

Repository files navigation

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.nix-community.org/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

Releases

No releases published

Packages

No packages published

Languages

  • Nix 97.2%
  • Shell 2.8%