This is an automated archive made by the Lemmit Bot.
The original was posted on /r/nixos by /u/iElectric on 2025-06-23 19:49:19+00:00.
Hey folks!
We’ve finally reached the point where in devenv.sh we’re experimenting on what would be the interface for packaging using your favorite $LANGUAGE into Nix.
Starting with something like this:
{ pkgs, lib, config, ... }: {
languages.rust.enable = true;
languages.rust.import = {
mypackage = {
root = ./.;
};
};
packages = languages.rust.import.mypackage.packages;
outputs.mypackage = config.languages.rust.import.mypackage.packages;
}
The main idea is that when you run devenv shell, you get an environment. When you run devenv build outputs.mypackage it builds you a Nix package - that you can later deploy to a container.
I’m mostly interested if this is simple enough and it’s clear to understand what’s going on here.
You must log in or register to comment.

