this post was submitted on 26 Jan 2024
4 points (75.0% liked)
NixOS
232 readers
1 users here now
NixOS is a Linux distribution built on top of the Nix package manager. Its declarative configuration allows reliable system upgrades via several official channels of stability and size.
This community discusses NixOS, Nix, and everything related.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Thanks, I think I finally got it, but I think I'll need to switch to flakes if I want to be able to install say numpy==1.10.0 instead of latest (is there a way to specify which python package version should be installed in mkShell?)
Does this explanation make sense?
To derive this ephemeral shell...
use a package manager defaulted from nix packages:
{pkgs ? import {} }:
Make an ephemeral shell with programs located in the package manager:
pkgs.mkShell {
Define the set of installed packages in the ephemeral shell