Skip to content

Commit f24309c

Browse files
committed
Use proot instead of nix-user-chroot.
1 parent 499bd54 commit f24309c

File tree

4 files changed

+4
-154
lines changed

4 files changed

+4
-154
lines changed

default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ let
1616
inherit arx maketar;
1717
};
1818

19-
nix-user-chroot = callPackage ./nix-user-chroot.nix {};
20-
2119
nix-bootstrap = callPackage ./nix-bootstrap.nix {
22-
inherit nix-user-chroot makebootstrap;
20+
inherit makebootstrap;
2321
};
2422

2523
in {

nix-bootstrap.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{ stdenv, writeText, nix-user-chroot, makebootstrap }:
1+
{ stdenv, writeText, proot, makebootstrap }:
22

33
{ name, target, run }:
44

55
makebootstrap {
66
inherit name;
7-
startup = ".${nix-user-chroot}/bin/nix-user-chroot ./nix ${target}${run}";
8-
targets = [ nix-user-chroot target ];
7+
startup = ".${proot}/bin/proot -b./nix:/nix ${target}${run}";
8+
targets = [ proot target ];
99
}

nix-user-chroot.c

Lines changed: 0 additions & 134 deletions
This file was deleted.

nix-user-chroot.nix

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)