diff options
| author | seth <[email protected]> | 2024-11-09 00:55:41 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-11-09 00:55:41 -0500 |
| commit | 3b580feff9eeed66e5726758d325cbf5db36f61e (patch) | |
| tree | fcfa3dda4fade70480eb8c8fdce9785d4ce47bf5 /nix | |
| parent | e06171510075d13bc3246692aaad4877055e748b (diff) | |
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
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/package.nix | 8 |
1 files 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 = { |
