Skip to content

Languages

What if you could have the tooling for any programming language by flipping a toggle?

devenv.nix
{ pkgs, ... }:

{
  languages.python.enable = true;
  languages.python.version = "3.11.3";

  languages.rust.enable = true;
  # https://devenv.sh/reference/options/#languagesrustchannel
  languages.rust.channel = "stable";
}

devenv will provide executables for both languages:

$ devenv shell
Building shell ...
Entering shell ...

(devenv) $ python --version
Python 3.11.3