Hi there! Nix newcomer. I’ve been using micromaba for a bit through a nix shell.
Note this issue started after an upgrade. I had allready deleted my previous channel generation by the time I noticed haha
Definition is nearly identical to that posted in the python wiki post on micromamaba.
{ pkgs ? import <nixpkgs> {}}:
let
fhs = pkgs.buildFHSUserEnv {
name = "my-fhs-environment";
targetPkgs = _: [
pkgs.which
pkgs.micromamba
];
profile = ''
set -e
eval "$(micromamba shell hook --shell=posix)"
export MAMBA_ROOT_PREFIX=${builtins.getEnv "PWD"}/.mamba
set +e
'';
};
in fhs.env
note the reason I include the which
package in this shell is to use the R
language with micromamba.
When I run nix-shell
everything starts up fine but the moment I try to run any micromamba
command I get the following error:
bash: /nix/store/r1m1ii09z82wv07ivb00jz2iz2pxmbc9-micromamba-1.5.8/bin/micromamba: No such file or directory
I’m 99% sure the hash here is for my old version of micromamba. Running
find /nix/store | grep micromamba
yields the following result (among others):
/nix/store/nf1jd8czw9kspasnpck8aqq8kmc2x0pz-micromamba-1.5.8/bin/micromamba
So to my untrained eye it seems that when I upgraded the hash for micromamba changed but something getting linked in the micromamba execution finding this binary is pulling an old version. Not sure this is a nix problem as much as a micromamba one. With that in mind any help figuring out how to get it working again would be appreciated!!
Thanks in advance