[<<][nixos][>>][..]
Tue Nov 28 04:20:38 EST 2017

Use case: erlang 18.3

Is no longer in Debian, so create a .nix file to build it.

What I want here is multiple environments which contain the dev
packages specific to a particular project.

EDIT: All I find is nix-shell.
This one says to use buildInputs:
https://ariya.io/2016/06/isolated-development-environment-using-nix



with import <nixpkgs> {};
stdenv.mkDerivation rec {
  name = "env";
  env = buildEnv { name = name; paths = buildInputs; };
  buildInputs = [
    python
    python27Packages.virtualenv
    python27Packages.pip
    go_1_4
    lua5_3
  ];
}


"nix-env --switch-profile" sets ~/nix-profile

So this is a global operation.
For local profiles, stick to nix shell?

So I guess using nix-shell is fine.
What I want though, is a way to save it so it doesn't get collected.

https://www.reddit.com/r/NixOS/comments/34ofjx/how_to_protect_nixshell_packages_from/

mentions nix-instantiate, but i can't get that to work.
it's probably easiest to collect them in a separate profile using nix-install.





[Reply][About]
[<<][nixos][>>][..]