mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 00:34:34 +02:00
ci/version-info: correctly set NIX_PATH instead of flake registries
Flake registries and include paths are not the same thing.
`<nixpkgs>` looks for nixpkgs on the include path, set by `NIX_PATH` and
`--include`. However `--inputs-from` adds inputs to the flake registry,
not the include path.
(cherry picked from commit 2369b7fc4f
)
This commit is contained in:
parent
13cc4d8457
commit
f8b5a2fa7d
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
path,
|
||||||
callPackage,
|
callPackage,
|
||||||
writeShellApplication,
|
writeShellApplication,
|
||||||
stdenv,
|
stdenv,
|
||||||
|
@ -15,6 +16,7 @@ writeShellApplication {
|
||||||
NIX_CONFIG = ''
|
NIX_CONFIG = ''
|
||||||
experimental-features = nix-command flakes pipe-operators
|
experimental-features = nix-command flakes pipe-operators
|
||||||
'';
|
'';
|
||||||
|
NIX_PATH = "nixpkgs=${toString path}";
|
||||||
};
|
};
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
|
@ -23,7 +25,6 @@ writeShellApplication {
|
||||||
|
|
||||||
# Use channels.nix to build channels.toml
|
# Use channels.nix to build channels.toml
|
||||||
nix build --impure \
|
nix build --impure \
|
||||||
--inputs-from ${toString ../..} \
|
|
||||||
--file ${./supported-versions.nix} \
|
--file ${./supported-versions.nix} \
|
||||||
--argstr system ${stdenv.hostPlatform.system} \
|
--argstr system ${stdenv.hostPlatform.system} \
|
||||||
--arg-from-file channelsJSON channels.json \
|
--arg-from-file channelsJSON channels.json \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue