Needs to be in hydraJobs

This commit is contained in:
2023-03-09 00:39:21 -05:00
parent 030820543c
commit f646dbac1d

View File

@@ -67,8 +67,7 @@
newalan = craneLib.buildPackage (commonArgs // { newalan = craneLib.buildPackage (commonArgs // {
inherit cargoArtifacts; inherit cargoArtifacts;
}); });
in in rec {
{
checks = pkgs.lib.optionalAttrs (system == "x86_64-linux") { checks = pkgs.lib.optionalAttrs (system == "x86_64-linux") {
# Build the crate as part of `nix flake check` for convenience # Build the crate as part of `nix flake check` for convenience
inherit newalan; inherit newalan;
@@ -106,13 +105,6 @@
partitions = 1; partitions = 1;
partitionType = "count"; partitionType = "count";
}); });
runCommandHook = {
newalan = pkgs.writeScript "run-me" ''
#!${pkgs.runtimeShell}
${pkgs.jq}/bin/jq . "$HYDRA_JSON"
'';
};
} // lib.optionalAttrs (system == "x86_64-linux") { } // lib.optionalAttrs (system == "x86_64-linux") {
# NB: cargo-tarpaulin only supports x86_64 systems # NB: cargo-tarpaulin only supports x86_64 systems
# Check code coverage (note: this will not upload coverage anywhere) # Check code coverage (note: this will not upload coverage anywhere)
@@ -120,7 +112,17 @@
inherit cargoArtifacts; inherit cargoArtifacts;
}); });
}; };
hydraJobs = checks // {
runCommandHook = {
newalan = pkgs.writeScript "run-me" ''
#!${pkgs.runtimeShell}
${pkgs.jq}/bin/jq . "$HYDRA_JSON"
'';
};
};
packages.default = newalan; packages.default = newalan;
apps.default = flake-utils.lib.mkApp { apps.default = flake-utils.lib.mkApp {