Skip to content

Proposal: merge packages and settings submodules #285

@srid

Description

@srid

Context: https://nixos.zulipchat.com/#narrow/stream/413949-haskell-flake/topic/.E2.9C.94.20.60custom.60.20setting.20stopped.20working/near/430086733

Instead of separate packages.<name>.* and settings.<name>.*, why not have a single submodule namespace? Isn't that simpler DX?

viz.: Instead of doing:

{
  packages = {
    aeson.source = "1.5.0";
    myhaskell.source = ./haskell;
  };
  settings = {
    hello_rust.custom =self'.packages.hello_rust;
    myhaskell.libraryProfiling = true;
  };
}

why not just:

{
  packages = {
    hello_rust.source = self'.packages.hello_rust
    myhaskell.source = ./haskell;
    myhaskell.setting.libraryProfiling = true;
    aeson.source = "1.5.0";
  };
}

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions