Skip to content

Flake: diversify wrapper and package #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Rexcrazy804
Copy link
Contributor

@Rexcrazy804 Rexcrazy804 commented Aug 10, 2025

  • seperated default.nix into two derrivations
  • default.nix hosting the wrapper and unwrapped.nix with original qs drv
  • passing non list argument to .withModules now displays an appropriate error message
  • reflected these changes onto CI nix code to override the unwrapped drv accordingly

Motivation

with the former implementation we were unable to call .overrideAttrs to
override the attributes of the underlying UNWRAPPED derivation (say
adding a postPatch)

With the current implementation, we may simply do so by calling
.override { quickshell-unwrapped = <qs-unwrapped with .overrideAttrs>; }

Tests Done

  • wrapper builds without errors
  • changing wrapper with .withModules does not rebuild everything
  • underlying unwrapped derivation's attrs are overridable
  • passing non list values to throws an appropriate error message

Todo

  • do what foxxed asked last night
  • ensure that the given list is a list of packages

- seperated default.nix into two derrivations
- default.nix hosting the wrapper and unwrapped.nix with original qs drv
- passing non list argument to .withModules now displays an appropriate error message
@Rexcrazy804
Copy link
Contributor Author

time to fix CI nix code :woe:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant