[Nix-dev] how to use stdenv

Ganesh Sittampalam ganesh at earth.li
Wed Dec 31 11:42:49 CET 2014


Hi,

https://nixos.org/wiki/Howto_develop_software_on_nixos talks about
including stdenv in a myEnvFun environment to get gcc etc.

However gcc and a bunch of other standard build tools don't seem to be
part of stdenv any more:

https://github.com/NixOS/nixpkgs/commit/328f7a621e0e2c37159e4cdd86fa279417fa3b9e

["stdenv: Remove propagatedUserEnvPkgs
Stdenv is not really intended as an installable package. Nowadays it's
much better to use "nix-shell -p" to get a build environment."]

Is that wiki page out of date now? Is there a new recommended way of
getting the build tools into a myEnvFun environment now?

Cheers,

Ganesh


More information about the nix-dev mailing list