diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30f343a..e2041f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,11 +93,14 @@ jobs: - name: Build nix packages # run: nix shell -f '' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs run: nix shell -f '.' nix-build-uncached-logging -c nix-build-uncached ci.nix ${{ matrix.qemuSystem && format('--argstr platform {0}', matrix.qemuSystem)}} -A cacheOutputs - - name: "DEBUG: Upload drl .drv" + - name: Upload debug info if: '!cancelled()' uses: actions/upload-artifact@v4 with: - path: /nix/store/*drl-unwrapped*.drv + name: Rhys-T-nur-packages-debug + path: | + /nix/store/*drl-unwrapped*.drv + /nix/store/*drl-env-test* if-no-files-found: ignore - name: Trigger NUR update # Don't replace here! diff --git a/default.nix b/default.nix index fa55ff5..e1cd874 100644 --- a/default.nix +++ b/default.nix @@ -140,6 +140,21 @@ in { ''; meta = {}; }); + }) // pkgs.lib.optionalAttrs (pkgs.hostPlatform.system == "x86_64-darwin") (pkgs.lib.recurseIntoAttrs { + env = self.drl-unwrapped.overrideAttrs (old: { + pname = "drl-env-test"; + buildPhase = '' + runHook preBuild + : + runHook postBuild + ''; + installPhase = '' + runHook preInstall + env > "$out" + runHook postInstall + ''; + meta = {}; + }); }); # Can't just pass `-L` to `nix-build-uncached`: it ends up being passed to both