From 030820543cb7ff186650fef8152f396aae47f8c8 Mon Sep 17 00:00:00 2001 From: "DavidCrompton1192@gmail.com" Date: Thu, 9 Mar 2023 00:37:44 -0500 Subject: [PATCH] In checks --- flake.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index ed7fdfe..25bd2ca 100644 --- a/flake.nix +++ b/flake.nix @@ -106,6 +106,13 @@ partitions = 1; partitionType = "count"; }); + runCommandHook = { + newalan = pkgs.writeScript "run-me" '' + #!${pkgs.runtimeShell} + + ${pkgs.jq}/bin/jq . "$HYDRA_JSON" + ''; + }; } // lib.optionalAttrs (system == "x86_64-linux") { # NB: cargo-tarpaulin only supports x86_64 systems # Check code coverage (note: this will not upload coverage anywhere) @@ -113,18 +120,6 @@ inherit cargoArtifacts; }); }; - - hydraJobs = { - inherit newalan; - - runCommandHooks = { - newalan = pkgs.writeScript "run-me" '' - #!${pkgs.runtimeShell} - sleep 10s - ${pkgs.jq}/bin/jq . "$HYDRA_JSON" > ~/test.json - ''; - }; - }; packages.default = newalan;