Vim

無法安裝 vim 外掛

  • March 19, 2015

我無法在 nixOS 上安裝任何 vim 外掛

執行命令:

nix-env -i vimplugin-Syntastic

將這些作為最後 3 行輸出:

output path ‘/nix/store/3bcdjr4hwgrimcimdg2115prpfm83xca-syntastic-4782184’ should 
have r:sha256 hash ‘1vjh3a3w6whvaws86z48j8bp7dgavvix8a2kgjn195axs83hpkxy’, instead has 
‘01a1px7i77ajc4y8czwhkhhqif89q6yf26wpjakh3asdv7cvnidm’

cannot build derivation ‘/nix/store/478msfr0bm6h64zp0ri5c98dgkp4zrcd-vimplugin-
Syntastic-2015-02-17.drv’: 1 dependencies couldn't be built

error: build of ‘/nix/store/478msfr0bm6h64zp0ri5c98dgkp4zrcd-vimplugin-Syntastic-2015-02-17.drv’ failed

在最後幾行之前,所有其他輸出看起來都很正常。我在使用其他 vim 外掛時遇到了完全相同的問題,我嘗試了其他 4 個外掛:

Solarized
Nerd commenter
airline
ctrp

嗯,我們似乎在表達式中指定了錯誤的雜湊值。我將修復推送到掌握https://github.com/NixOS/nixpkgs/commit/f799749編輯:實際上,以下 46b48b0b4 送出解決了錯誤的外掛(可能他們所有的雜湊都被破壞了)。

引用自:https://unix.stackexchange.com/questions/186519