Skip to content

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.

@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
@jmbaur jmbaur force-pushed the rm-override-options branch 3 times, most recently from 820832d to 12f5f22 Compare January 6, 2025 17:24
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 12f5f22 to d5c6b20 Compare January 21, 2025 05:25
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