2022-12-08 22:19:22 +01:00
|
|
|
{ depot, pkgs, lib, ... }:
|
|
|
|
|
2023-02-02 22:49:56 +01:00
|
|
|
(depot.tvix.crates.workspaceMembers.tvix-cli.build.override {
|
2022-12-08 22:19:22 +01:00
|
|
|
runTests = true;
|
2023-02-02 22:49:56 +01:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
meta = {
|
|
|
|
ci.extraSteps.eval-nixpkgs-stdenv = {
|
|
|
|
label = ":nix: evaluate nixpkgs.stdenv in tvix";
|
|
|
|
needsOutput = true;
|
|
|
|
|
|
|
|
command = pkgs.writeShellScript "tvix-eval-stdenv" ''
|
|
|
|
TVIX_OUTPUT=$(result/bin/tvix -E '(import ${pkgs.path} {}).stdenv.drvPath')
|
|
|
|
EXPECTED='${/* the verbatim expected Tvix output: */ "=> \"${pkgs.stdenv.drvPath}\" :: string"}'
|
|
|
|
|
|
|
|
echo "Tvix output: ''${TVIX_OUTPUT}"
|
|
|
|
if [ "$TVIX_OUTPUT" != "$EXPECTED" ]; then
|
|
|
|
echo "Correct would have been ''${EXPECTED}"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Output was correct."
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|