tests.nixpkgs-check-by-name: Test on the current Nixpkgs
This test actually fails right now
This commit is contained in:
parent
91b754edff
commit
3ebd239cd5
@ -6,6 +6,7 @@
|
|||||||
clippy,
|
clippy,
|
||||||
mkShell,
|
mkShell,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
|
runCommand,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
runtimeExprPath = ./src/eval.nix;
|
runtimeExprPath = ./src/eval.nix;
|
||||||
@ -52,6 +53,19 @@ let
|
|||||||
env.NIXPKGS_LIB_PATH = toString nixpkgsLibPath;
|
env.NIXPKGS_LIB_PATH = toString nixpkgsLibPath;
|
||||||
inputsFrom = [ package ];
|
inputsFrom = [ package ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Tests the tool on the current Nixpkgs tree, this is a good sanity check
|
||||||
|
passthru.tests.nixpkgs = runCommand "test-nixpkgs-check-by-name" {
|
||||||
|
nativeBuildInputs = [
|
||||||
|
package
|
||||||
|
nix
|
||||||
|
];
|
||||||
|
nixpkgsPath = lib.cleanSource ../../..;
|
||||||
|
} ''
|
||||||
|
${initNix}
|
||||||
|
nixpkgs-check-by-name --base "$nixpkgsPath" "$nixpkgsPath"
|
||||||
|
touch $out
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
package
|
package
|
||||||
|
Loading…
Reference in New Issue
Block a user