问题描述
我正在尝试探索gnu sed的代码库。
我可以从命令行执行此操作:
nix-shell '<nixpkgs>' -A gnused
unpackPhase
cd sed-4.8
configurePhase
buildPhase
然后在sed等下编辑代码
但是我想使用未安装的ctags:
nix-shell -p ctags
安装软件包,但:
nix-shell '<nixpkgs>' -A gnused -p ctags
得到错误:
error: attribute 'gnused' in selection path 'gnused' not found
我意识到我必须使用shell.nix,但是找不到上面的mkShell示例。
P.S。两次调用nix-shell达到了所需的结果,但这似乎很麻烦:
nix-shell -p ctags
nix-shell '<nixpkgs>' -A gnused
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)