Skip to content

Commit

Permalink
drl: more debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys-T committed Oct 30, 2024
1 parent af185bc commit 51bed0f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,14 @@ jobs:
- name: Build nix packages
# run: nix shell -f '<nixpkgs>' 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 <YOUR_REPO_NAME> here!
Expand Down
15 changes: 15 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51bed0f

Please sign in to comment.