nix-user-chroot 2.1.0

Install & Run nix without root permissions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  pkgs ? import <nixpkgs> { },
}:
pkgs.stdenv.mkDerivation {
  name = "env";
  buildInputs = with pkgs; [
    bashInteractive
    cargo
    rustc
    clippy
    rustfmt
  ];
  # Used by tests/path_config.rs to get a shell that works inside a
  # chroot with a fake (empty) nixdir, where /bin/sh -> /nix/store/...
  # would be dangling.
  NIX_USER_CHROOT_TEST_BUSYBOX = "${pkgs.pkgsStatic.busybox}/bin/busybox";
}