Skip to content

[question]: How to build container from flakified devenv? #1752

@gabyx

Description

@gabyx

This project is really cool!.
I am however running into the need to build a OCI container from a flakeified devenv - devShell?

inputs.devenv.lib.mkShell {
  inherit pkgs inputs;
  modules = [
    (
      { pkgs, config, ... }:
      {
        packages = [
          pkgs.${namespace}.bootstrap
          pkgs.${namespace}.treefmt
        ];
      }
    )
  ];
}

I have that in my outputs devShell.default and could also put that into a package packages.defaultShell:

How can I build a container from this? Is there a best-practice way to do it?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    flakesRelated to running devenv using the flake integrationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions