To patch a binary, I need the environment variable NIX_CC
, which seems to be missing in my zsh-session, but is present withing nix-shell -p binutils
.
Is it possible to have access to that variable in my zsh-session? Did I miss something else?
Thanks
My configuration.nix
environment.systemPackages = [
...
pkgs.zsh
pkgs.binutils
...
];
environment.shells = [ pkgs.zsh ];
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;