Merge pull request #169766 from Sciencentistguy/comma-fix-path

comma: Fix panic due to missing `nix-index` in path
This commit is contained in:
Artturi 2022-04-22 15:27:07 +03:00 committed by GitHub
commit 3635410a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,12 @@
{ lib
, rustPlatform
{ comma
, fetchFromGitHub
, nix
, fzy
, lib
, makeWrapper
, nix
, nix-index
, rustPlatform
, testVersion
, comma
}:
rustPlatform.buildRustPackage rec {
@ -25,7 +26,7 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
wrapProgram $out/bin/comma \
--prefix PATH : ${lib.makeBinPath [ nix fzy ]}
--prefix PATH : ${lib.makeBinPath [ nix fzy nix-index ]}
ln -s $out/bin/comma $out/bin/,
'';