forked from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample_user_config.nix
47 lines (38 loc) · 1.5 KB
/
example_user_config.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ pkgs ? import <nixpkgs> {} }:
{
packageOverrides = pkgs: {
# R environnement
rEnv = pkgs.rWrapper.override {
packages = with pkgs.rPackages; [
#################################################
# You can list your R packages below and intall
# an R environement with:
# nix-env -f "<nixpkgs>" -iA rEnv
#################################################
diversitree EMC
];
};
# Python environment
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
#################################################
# You can list your python packages below and
# install a python environement with:
# nix-env -f "<nixpkgs>" -iA pythonEnv
#################################################
numpy ipython virtualenv pip notebook
]);
########################################################
# NUR packages
# See https://github.com/Gricad/nur-packages
# To get the list of available packages:
# nix-env -f "<nixpkgs>" -qaP -A nur.repos.gricad
# To install a Gricad package (hello example here):
# nix-env -f "<nixpkgs>" -iA nur.repos.gricad.hello
########################################################
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
};
# Allow to build unfree packages
allowUnfree = true;
}