fix: Update `getDev` references
Do not nest `lib.optionals` inside `lib.getDev`. For some reason this modifies the derivations so `getDev` no longer works.