Skip to content
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

Add warnings for future deprecation of nixos options related to packaging #223

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jmbaur
Copy link
Contributor

@jmbaur jmbaur commented Jun 25, 2024

Description of changes

We have a few nixos options that are mirrors of arguments to stdenv.mkDerivation (e.g. patches, postPatch). Let's encourage users to use the overlay system in order customize packaging. This also includes some refactors of optee and uefi packages to allow for overlaying these derivations to be simpler.

Testing

Tested using internal test suite (flashing, booting, capsule updates, etc) on an orin-nano-devkit

@jmbaur jmbaur marked this pull request as ready for review June 26, 2024 02:59
@jmbaur jmbaur force-pushed the rm-override-options branch from d1a9bd5 to dac11f6 Compare July 10, 2024 21:25
@danielfullmer
Copy link
Collaborator

Instead of simply removing these options, I think we should throw a warning when they are used, but remove them entirely at some later date. Optimally, we would also have documented an example of a way to do what one of these options did, but using an overlay.

This splits out uefi-firmware into multiple derivations to allow for
easier overriding of individual components. This will eventually allow
for the removal of nixos options that override these components, as
overlays are now easier to use.
This splits out optee-related packages into multiple derivations to
allow for easier overriding of individual components. This will
eventually allow for the removal of nixos options that override these
components, as overlays are now easier to use.
@jmbaur jmbaur force-pushed the rm-override-options branch from dac11f6 to 3ebff61 Compare December 14, 2024 01:10
@jmbaur
Copy link
Contributor Author

jmbaur commented Dec 14, 2024

Instead of simply removing these options, I think we should throw a warning when they are used, but remove them entirely at some later date. Optimally, we would also have documented an example of a way to do what one of these options did, but using an overlay.

Added warnings here to warn of future deprecation: https://github.com/anduril/jetpack-nixos/pull/223/files#diff-826389d2e36b4094c8a2ab49d67b8d6ea42e488fba7b3c58c67ccd4a553011f8R357

@jmbaur jmbaur changed the title Deprecate nixos options related to packaging Add warnings for future deprecation of nixos options related to packaging Dec 14, 2024
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.

2 participants