GRICAD NUR repository
- 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
- 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=="