DavHau / drv-parts

Configure packages like NixOS systems
MIT License
153 stars 6 forks source link

Feature: Flags #9

Closed DavHau closed 1 year ago

DavHau commented 1 year ago

This introduces options flagsOffered and flags to provide and set flags. This provides a distinct place for boolean configuration options like for example enableSystemd or fooSupport. To have these flags separated out, can only be beneficial, as it offers better potential to extend drv-parts with features specific to flags.

This allows us to add logic similar to Cargo Features, where packages can enable flags of other packages they depend on.