]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - config/config.nix
Upgrade packages to 19.03
[perso/Immae/Config/Nix.git] / config / config.nix
CommitLineData
ea9d3f4b
IB
1{
2 packageOverrides = pkgs: with pkgs; {
3 # buildEnv is not absolutely equivalent to
4 # `nix-env -i -f ./nixRoot/default.nix`, see
5 # https://github.com/NixOS/nix/issues/2682
6 immaePackages = pkgs.buildEnv {
7 name = "Immae-packages";
8 paths = builtins.attrValues (import ./nixRoot/default.nix);
9 pathsToLink = [ "/bin" "/etc" "/include" "/lib" "/libexec" "/share"];
10 extraOutputsToInstall = [ "bin" "man" "doc" "info" ];
11 };
a556c4b0
IB
12 # This adds header colors to the builds, but it rebuilds the whole
13 # world from scratch, so only use it to debug!
14 # add it as postHook in derivations
15 immaePostHook = ''
16 header() {
17 echo -ne "\033[1;36m"
18 echo -n "$1"
19 echo -e "\033[0m"
20 }
21
22 echoCmd() {
23 printf "\033[1;34m%s:\033[0m" "$1"
24 shift
25 printf ' %q' "$@"
26 echo
27 }
28 '';
ea9d3f4b
IB
29 };
30}