我nix-shell
用来调试我的包。配置脚本如下所示:
configurePhase = ''
mkdir -p $out
...
'';
通过运行时nix-build
,此代码是可以的,但是运行时nix-shell
我无法$out
在运行时创建目录configurePhase
mkdir: cannot create directory '/nix/store/...': Read-only file system
我明白为什么会发生这种情况,但是如何解决这个问题?