From 2a5fb30f895c160d0ac38db4a2c657b417ff1aa5 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 28 Mar 2024 15:20:27 +0100 Subject: [PATCH] feat(flake): add `mrf-tool` and `kitsune-job-runner` Signed-off-by: Harald Hoyer --- .github/workflows/nix.yml | 2 ++ flake.nix | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 835a03895..694809eca 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -36,6 +36,8 @@ jobs: run: nix build --override-input debugBuild github:boolean-option/true/6ecb49143ca31b140a5273f1575746ba93c3f698 -L .#cli - name: nix build frontend run: nix build --override-input debugBuild github:boolean-option/true/6ecb49143ca31b140a5273f1575746ba93c3f698 -L .#frontend + - name: nix build mrf-tool + run: nix build --override-input debugBuild github:boolean-option/true/6ecb49143ca31b140a5273f1575746ba93c3f698 -L .#mrf-tool - name: nix check overlay run: cd test-overlay && nix build --no-write-lock-file -L .#kitsune diff --git a/flake.nix b/flake.nix index 173dc56b2..29ed38fd3 100644 --- a/flake.nix +++ b/flake.nix @@ -100,9 +100,16 @@ doCheck = false; }); + mrf-tool = craneLib.buildPackage (commonArgs // { + pname = "mrf-tool"; + cargoExtraArgs = commonArgs.cargoExtraArgs + " --bin mrf-tool"; + inherit cargoArtifacts; + doCheck = false; + }); + main = craneLib.buildPackage (commonArgs // rec { pname = "kitsune"; - cargoExtraArgs = commonArgs.cargoExtraArgs + " --bin kitsune"; + cargoExtraArgs = commonArgs.cargoExtraArgs + " --bin kitsune --bin kitsune-job-runner"; inherit cargoArtifacts; doCheck = false; });