lib/tests/test-with-nix: run lib/tests/fetchers.nix in the derivation
This suffers from the same issue as misc.nix tests, because they were evaluated by the host nix, not the one that is being tested.
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}"
|
pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}"
|
||||||
{
|
{
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(import ./fetchers.nix)
|
|
||||||
(import ../path/tests {
|
(import ../path/tests {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
})
|
})
|
||||||
@@ -73,6 +72,9 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}"
|
|||||||
echo "Running lib/tests/misc.nix"
|
echo "Running lib/tests/misc.nix"
|
||||||
[[ $(nix-instantiate --eval --strict lib/tests/misc.nix | tee /dev/stderr) == '[ ]' ]];
|
[[ $(nix-instantiate --eval --strict lib/tests/misc.nix | tee /dev/stderr) == '[ ]' ]];
|
||||||
|
|
||||||
|
echo "Running lib/tests/fetchers.nix"
|
||||||
|
[[ $(nix-instantiate --eval --strict lib/tests/fetchers.nix | tee /dev/stderr) == '[ ]' ]];
|
||||||
|
|
||||||
mkdir $out
|
mkdir $out
|
||||||
echo success > $out/${nix.version}
|
echo success > $out/${nix.version}
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user