From 3b580feff9eeed66e5726758d325cbf5db36f61e Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 9 Nov 2024 00:55:41 -0500 Subject: fix(nix): make sure wrapped nix is always used We assume `nix` to have the newer `path-info --json` output. This is not present in Lix or older versions of Nix --- nix/package.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nix/package.nix b/nix/package.nix index cc60573..afa2074 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -36,13 +36,15 @@ rustPlatform.buildRustPackage rec { doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; + # NOTE: Yes, we specifically need Nix. Lix does not have the newer + # `path-info --json` output used internally postInstall = '' - wrapProgram $out/bin/nix-forecast --suffix PATH : ${lib.makeBinPath [ nix ]} + wrapProgram $out/bin/nix-forecast --prefix PATH : ${lib.makeBinPath [ nix ]} installShellCompletion --cmd nix-forecast \ --bash completions/nix-forecast.bash \ - --fish completions/nix-forecast.fish \ - --zsh completions/_nix-forecast + --fish completions/nix-forecast.fish \ + --zsh completions/_nix-forecast ''; env = { -- cgit v1.2.3