about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJamie Quigley <jamie@quigley.xyz>2022-04-22 12:31:35 +0100
committerJamie Quigley <jamie@quigley.xyz>2022-04-22 12:31:35 +0100
commitddf6457d2dca6b7eac434d1131d06797abbe50de (patch)
treec983e92dd4fd1c8fdb1b39608a7f384cb70f95a6
parent1468e8f52d5de4f35a5563ab6fac1b09613bb508 (diff)
comma: Fix panic due to missing `nix-index` in path
-rw-r--r--pkgs/tools/package-management/comma/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/tools/package-management/comma/default.nix b/pkgs/tools/package-management/comma/default.nix
index 5314285061e77..a9885fc135181 100644
--- a/pkgs/tools/package-management/comma/default.nix
+++ b/pkgs/tools/package-management/comma/default.nix
@@ -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/,
   '';