Skip to content

overhaul most of nix-bundle#26

Merged
matthewbauer merged 1 commit intonix-community:masterfrom
input-output-hk:overhaul
Mar 3, 2018
Merged

overhaul most of nix-bundle#26
matthewbauer merged 1 commit intonix-community:masterfrom
input-output-hk:overhaul

Conversation

@cleverca22
Copy link
Collaborator

pulled nix-user-chroot into the same repo
put the startup command into a bash script, so the tarball job knows its deps
changed nix-user-chroot into a c++ program
added CLI flags to allow configuring the sandbox it produces

with these changes, you can now configure it to do things like mapping the host /etc to /host-etc inside the namespace, and have finer control over how pure the env variables are

pulled nix-user-chroot into the same repo
put the startup command into a bash script, so the tarball job knows its deps
changed nix-user-chroot into a c++ program
added CLI flags to allow configuring the sandbox it produces
@domenkozar
Copy link

cc @matthewbauer

@dtzWill
Copy link
Contributor

dtzWill commented Feb 26, 2018

release.nix may need some touchups to pull in nix-user-chroot?

$ nix build -f release.nix
$ ./result/bin/nix-bundle bash /bin/bash
error: getting attributes of path ‘/nix/store/xq6cia08kfg4y37b6wnjy3bid660swm0-nix-bundle-0.2.0/share/nix-bundle/nix-user-chroot’: No such file or directory
$ ls ./result/share/nix-bundle
AppRun.c  appdir.nix  appdir.sh  appimage-top.nix  appimage.nix  appimagetool.nix  default.nix  nix-bundle.sh  nix-run.sh  nix2appimage.sh

@matthewbauer
Copy link
Member

Looks good! I can bump the version after this too.

@matthewbauer matthewbauer merged commit 0c91c12 into nix-community:master Mar 3, 2018
@matthewbauer
Copy link
Member

Thanks!

Error in #26 (comment) has also been fixed.

@dtzWill
Copy link
Contributor

dtzWill commented Mar 3, 2018

Oh, it was fixed separately in dcbfa1a :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments