Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gabyx opened this issue Feb 26, 2025 · 0 comments
Open

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

gabyx opened this issue Feb 26, 2025 · 0 comments
Labels
question Further information is requested

Comments

@gabyx
Copy link

gabyx commented Feb 26, 2025

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!

@gabyx gabyx added the question Further information is requested label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant