Hello!
For about a month I have been using the same shell.nix file (below) to run micromamba in an FHS environment on NixOS. It is based off the script given in the Python wiki pages, but I added that targetpkgs line to allow python to interface with R.
with import <nixpkgs> {}; (pkgs.buildFHSUserEnv { name = "fhs";
profile = ''
set -e
eval "$(micromamba shell hook -s bash)"
micromamba activate betaspiral
set +e
'';
targetPkgs = pkgs: (builtins.concatLists [ [ micromamba ] [] [pkgs.which]]);
}).env
It was working great but starting this week, when I run nix-shell it fails on building libyaml. Here is the error in full:
applying patch /nix/store/1jdigwdc9g4gg9k0dnwakpd851k9xcps-libyaml-cpp-Fix-pc-paths-for-absolute-GNUInstallDirs.patchj
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/yaml-cpp.pc.in
|+++ b/yaml-cpp.pc.in
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
error: builder for '/nix/store/0ryh5fz3yvs8s56dc1kfifnfrry8i67w-libyaml-cpp-0.6.3.drv' failed with exit code 1;
last 10 log lines:
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- a/yaml-cpp.pc.in
> |+++ b/yaml-cpp.pc.in
> --------------------------
> File to patch:
> Skip this patch? [y]
> Skipping patch.
> 1 out of 1 hunk ignored
For full logs, run 'nix log /nix/store/0ryh5fz3yvs8s56dc1kfifnfrry8i67w-libyaml-cpp-0.6.3.drv'.
error: 1 dependencies of derivation '/nix/store/5hiw1ipv6is5j02w8sxx4qqmjazg8f0j-micromamba-0.15.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4hkql9p4myhp4dyxxr9vxp7n1wmya8gd-fhs-usr-target.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c1pzs0mc5hl7cs0m1lf4yi4qv1l505mn-fhs-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x6v6nk3w7cpq7mjl1hjgwxdg3j0vb2s6-fhs-init.drv' failed to build
I was wondering how I could fix/get around this error. I am very new to Nix so any help would be greatly appreciated.
Thank you!
Garrett