From d8db3ba009209df4a262606d1735c90fcc888824 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sat, 15 Aug 2026 20:55:33 +0300 Subject: [PATCH] install Homebrew libkrun for the macOS nix build macOS has no libkrun in nixpkgs; the bsdkrun flake dependency links Homebrew's libkrun impurely via LIBKRUN_PREFIX. Install it from tsirysndr/tap and pass --impure on the darwin matrix leg, mirroring bsdkrun's own nix workflow. --- .github/workflows/nix.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index b3f72c2..c2df15f 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -19,10 +19,15 @@ jobs: include: - runner: ubuntu-latest system: x86_64-linux + flags: "" - runner: ubuntu-24.04-arm system: aarch64-linux + flags: "" - runner: macos-latest system: aarch64-darwin + # The bsdkrun dependency has no libkrun in nixpkgs on macOS — its + # flake links Homebrew's libkrun impurely (LIBKRUN_PREFIX). + flags: "--impure" runs-on: ${{ matrix.runner }} steps: @@ -32,8 +37,12 @@ jobs: - name: Install Nix uses: DeterminateSystems/nix-installer-action@main + - name: Install libkrun (macOS) + if: runner.os == 'macOS' + run: brew install tsirysndr/tap/libkrun + - name: Build kbuildx - run: nix build ".#packages.${{ matrix.system }}.kbuildx" --print-build-logs + run: nix build ".#packages.${{ matrix.system }}.kbuildx" --print-build-logs ${{ matrix.flags }} - name: Verify packaged CLI run: ./result/bin/kbuildx --version -- 2.51.2