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;