dev pack ships full mongodb — breaks the default first build #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
modules/development.nix:114puts the fullmongodbserver intoenvironment.systemPackages(gated bypacks.development.enable). MongoDB is:cache.nixos.orgdoesn't build it → Nix compiles it from sourcescons: building terminated ... build/nixos/mongo/db/pipeline/expression.o failed)Critically, the template enables
packs.developmentby default, so a brand-new adopter hits this on their very firstnixos-rebuild.Impact
High — breaks the out-of-box build for the default template config.
Suggested fix
Drop
mongodbfrommodules/development.nix. The pack already provides everything needed for Mongo work without the from-source server:mongodb-tools(client utilities,modules/packs/development.nix:86)dev-mongodbscript that runs the server in Docker (modules/development.nix:233)While in there, worth a quick scan of the rest of the dev pack for other unfree/uncached-from-source landmines.
Found while helping a friend adopt the template on existing NixOS.